From 50680bba7d9dff710f896782a73c1ec4db967b97 Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 13 Oct 2023 15:57:28 +1100 Subject: [PATCH] fix: throw error in getMessageReadyToDisappear for community messages --- ts/session/disappearing_messages/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ts/session/disappearing_messages/index.ts b/ts/session/disappearing_messages/index.ts index dc90c3912..85adb33b8 100644 --- a/ts/session/disappearing_messages/index.ts +++ b/ts/session/disappearing_messages/index.ts @@ -448,10 +448,11 @@ export function getMessageReadyToDisappear( } if (conversationModel.isPublic()) { - window.log.warn( - "getMessageReadyToDisappear() Disappearing messages aren't supported in communities" + throw Error( + `getMessageReadyToDisappear() Disappearing messages aren't supported in communities. Message id: ${messageModel.get( + 'id' + )}` ); - return messageModel; } const {