From 3d5ecaf3764876ea0eae85c4f0426c100c5dc75f Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 12 Aug 2024 10:19:31 +0200 Subject: [PATCH] fix crash on group chats screen --- .../eu/siacs/conversations/ui/StartConversationActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 138900daa..6fca415a9 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -1417,14 +1417,16 @@ public class StartConversationActivity extends XmppActivity implements XmppConne int resContextMenu; - ListItem item = activity.contacts.get(position); + ListItem item; if (itemsFromContacts) { + item = activity.contacts.get(position); if (item instanceof Bookmark) { resContextMenu = mResContextMenuConference; } else { resContextMenu = mResContextMenuContact; } } else { + item = activity.conferences.get(position); resContextMenu = mResContextMenuConference; }