Skip to content

Commit

Permalink
fix: NPE in ChatActivity BackButtonMenuRecent
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Apr 3, 2024
1 parent 60732aa commit fa73b5b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -8311,7 +8311,9 @@ public void onAllEffectsEnd() {
}

// BackButtonMenu.addToAccessedDialogs(currentAccount, currentChat, currentUser, dialog_id, dialogFolderId, dialogFilterId);
BackButtonMenuRecent.addToRecentDialogs(currentAccount, currentUser != null ? currentUser.id : -currentChat.id);
if (currentUser != null || currentChat != null) {
BackButtonMenuRecent.addToRecentDialogs(currentAccount, currentUser != null ? currentUser.id : -currentChat.id);
}

if (getDialogId() == getUserConfig().getClientUserId() && chatMode != MODE_SAVED) {
savedMessagesHint = new HintView2(context, HintView2.DIRECTION_TOP);
Expand Down

0 comments on commit fa73b5b

Please sign in to comment.