Update src/org/thoughtcrime/securesms/ConversationListAdapter.java

Co-authored-by: bjoern <r10s@b44t.com>
This commit is contained in:
Asiel Díaz Benítez
2023-10-12 16:01:42 -04:00
committed by GitHub
parent 1553c41147
commit 4a59e2cfd3
@@ -195,11 +195,15 @@ class ConversationListAdapter extends RecyclerView.Adapter {
}
void changeData(@Nullable DcChatlist chatlist) {
Context context = this.context.get();
if (context == null) {
return;
}
if (chatlist == null) {
dcChatlist = new DcChatlist(0, 0);
} else {
dcChatlist = chatlist;
dcContext = DcHelper.getContext(context.get());
dcContext = DcHelper.getContext(context);
}
notifyDataSetChanged();
}