From 8f1330d082366115eaf1df5e43651a1bc3c552af Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 17 Dec 2024 14:14:29 +0100 Subject: [PATCH] don't throw IllegalStateException --- .../java/org/thoughtcrime/securesms/ConversationActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java b/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java index 62a2b3f31..aa60cd323 100644 --- a/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java @@ -900,7 +900,7 @@ private void initializeResources() { } chatId = getIntent().getIntExtra(CHAT_ID_EXTRA, -1); if(chatId == DcChat.DC_CHAT_NO_CHAT) - throw new IllegalStateException("can't display a conversation for no chat."); + chatId = -1; dcChat = dcContext.getChat(chatId); recipient = new Recipient(this, dcChat); glideRequests = GlideApp.with(this);