Fix crash

This commit is contained in:
nielsandriesse 2020-06-23 12:13:27 +10:00
parent c446ba6e58
commit 90a8a36486

View File

@ -428,9 +428,7 @@ public class ConversationFragment extends Fragment
private MessageRecord getSelectedMessageRecord() { private MessageRecord getSelectedMessageRecord() {
Set<MessageRecord> messageRecords = getListAdapter().getSelectedItems(); Set<MessageRecord> messageRecords = getListAdapter().getSelectedItems();
return messageRecords.iterator().next();
if (messageRecords.size() == 1) return messageRecords.iterator().next();
else throw new AssertionError();
} }
public void reload(Recipient recipient, long threadId) { public void reload(Recipient recipient, long threadId) {