From 90a8a36486706f58bb9c7e3e35a2c8fdf82574f9 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Tue, 23 Jun 2020 12:13:27 +1000 Subject: [PATCH] Fix crash --- .../securesms/conversation/ConversationFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java b/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java index 19c3295efa..52a5d8ff2e 100644 --- a/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java +++ b/src/org/thoughtcrime/securesms/conversation/ConversationFragment.java @@ -428,9 +428,7 @@ public class ConversationFragment extends Fragment private MessageRecord getSelectedMessageRecord() { Set messageRecords = getListAdapter().getSelectedItems(); - - if (messageRecords.size() == 1) return messageRecords.iterator().next(); - else throw new AssertionError(); + return messageRecords.iterator().next(); } public void reload(Recipient recipient, long threadId) {