hidde "chats in common" header when no chats in common

This commit is contained in:
adbenitez 2025-07-07 17:30:45 +02:00
parent 4663299951
commit f9885fbcad

View file

@ -318,7 +318,7 @@ public class ProfileAdapter extends RecyclerView.Adapter
} }
} }
if (sharedChats != null && !isDeviceTalk) { if (!isDeviceTalk && sharedChats != null && sharedChats.getCnt() > 0) {
itemData.add(new ItemData(ITEM_HEADER, context.getString(R.string.profile_shared_chats), 0)); itemData.add(new ItemData(ITEM_HEADER, context.getString(R.string.profile_shared_chats), 0));
for (int i = 0; i < sharedChats.getCnt(); i++) { for (int i = 0; i < sharedChats.getCnt(); i++) {
itemData.add(new ItemData(ITEM_SHARED_CHATS, 0, i)); itemData.add(new ItemData(ITEM_SHARED_CHATS, 0, i));