Signed-off-by: Mario Danic <mario@lovelyhq.com>
@@ -297,7 +297,6 @@ public class CallNotificationController extends BaseController {
if (handler == null) {
handler = new Handler();
-
ncApi = ApplicationWideApiHolder.getInstance().getNcApiInstanceForAccountId(userBeingCalled.getId(), null);
}
@@ -469,6 +469,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
@Override
public void onDestroy() {
super.onDestroy();
+ adapter = null;
inChat = false;
ApplicationWideCurrentRoomHolder.getInstance().clear();
leaveRoom();