fix(ANR): Mark messages as seen asynchronously (#3505)

Mark messages as seen in a background thread instead of on the UI
thread in order to fix #3504.
This commit is contained in:
Hocuri
2024-12-18 15:41:44 +01:00
committed by GitHub
parent 8d49c7e595
commit e2a825dfb2
@@ -210,7 +210,7 @@ public class ConversationFragment extends MessageSelectorFragment
public void onResume() {
super.onResume();
dcContext.marknoticedChat((int) chatId);
Util.runOnBackground(() -> dcContext.marknoticedChat((int) chatId));
if (list.getAdapter() != null) {
list.getAdapter().notifyDataSetChanged();
}