use conversationListFragment.loadChatlistAsync() to avoid races

This commit is contained in:
adbenitez
2026-02-07 06:22:31 +01:00
parent 9ffc904ae5
commit 8a0e2d72a4
2 changed files with 3 additions and 3 deletions
@@ -615,7 +615,7 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
refreshAvatar();
refreshUnreadIndicator();
refreshTitle();
conversationListFragment.loadChatlist();
conversationListFragment.loadChatlistAsync();
}
public void onDeleteProfile(int profileId) {
@@ -233,7 +233,7 @@ public class ConversationListFragment extends BaseConversationListFragment
private final Object loadChatlistLock = new Object();
private boolean inLoadChatlist;
private boolean needsAnotherLoad;
private void loadChatlistAsync() {
public void loadChatlistAsync() {
synchronized (loadChatlistLock) {
needsAnotherLoad = true;
if (inLoadChatlist) {
@@ -260,7 +260,7 @@ public class ConversationListFragment extends BaseConversationListFragment
});
}
public void loadChatlist() {
private void loadChatlist() {
int listflags = 0;
if (archive) {
listflags |= DcContext.DC_GCL_ARCHIVED_ONLY;