@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    overridePendingTransition(R.anim.fadein, R.anim.fadeout);
    disableRefresh();

    TextView status = (TextView) findViewById(R.id.tvSucc);
    ChatMember member = Utils.getSetting(this, Const.CHAT_MEMBER, ChatMember.class);
    status.setText(String.format(getString(R.string.public_key_mail), member.getLrzId()));

    // If called because app version changed remove "Step 4" and close on back pressed
    Intent i = getIntent();
    if (i != null && i.hasExtra(Const.TOKEN_IS_SETUP)) {
      tokenSetup = i.getBooleanExtra(Const.TOKEN_IS_SETUP, false);
    }
  }
  @Override
  protected Boolean onLoadInBackground(Void... arg) {
    ChatRoomManager manager = new ChatRoomManager(this);

    // Get member and private key from settings
    ChatMember member = Utils.getSetting(this, Const.CHAT_MEMBER, ChatMember.class);
    PrivateKey privateKey = Utils.getPrivateKeyFromSharedPrefs(this);
    if (privateKey == null || member == null) return false;

    // Try to restore already joined chat rooms from server
    try {
      List<ChatRoom> rooms =
          TUMCabeClient.getInstance(this)
              .getMemberRooms(member.getId(), new ChatVerification(privateKey, member));
      manager.replaceIntoRooms(rooms);
      return true;
    } catch (RetrofitError e) {
      Utils.log(e);
      return false;
    }
  }