@Override
 public void onStop() {
   if (self != null) {
     self.removeUpdateListener(selfUpdateListener);
     self = null;
   }
   super.onStop();
 }
 @Override
 public void onStart() {
   super.onStart();
   if (self == null) {
     self = getStoreFactory().getZMessagingApiStore().getApi().getSelf();
     self.addUpdateListener(selfUpdateListener);
     selfUpdateListener.updated();
   }
 }
 @Override
 public void updated() {
   if (self == null) {
     return;
   }
   if (self.getClientRegistrationState() != ClientRegistrationState.LIMIT_REACHED
       && getContainer() != null) {
     getContainer().dismissOtrDeviceLimitFragment();
   }
 }