From 6ab3cd3390a9a57bc4ce0ab2053e9be291b8b845 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Tue, 7 Apr 2026 09:39:06 -0400 Subject: [PATCH] Don't show terminated groups after storage service restore. --- .../groups/v2/processing/GroupsV2StateProcessor.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/groups/v2/processing/GroupsV2StateProcessor.kt b/app/src/main/java/org/thoughtcrime/securesms/groups/v2/processing/GroupsV2StateProcessor.kt index 5c89656543..07f739d5b0 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/groups/v2/processing/GroupsV2StateProcessor.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/groups/v2/processing/GroupsV2StateProcessor.kt @@ -560,8 +560,10 @@ class GroupsV2StateProcessor private constructor( } if (currentLocalState == null || currentLocalState.revision == RESTORE_PLACEHOLDER_REVISION) { - Log.i(TAG, "$logPrefix Inserting single update message for no local state or restore placeholder") - profileAndMessageHelper.insertUpdateMessages(timestamp, null, setOf(AppliedGroupChangeLog(updatedGroupState, null)), null) + if (!updatedGroupState.terminated) { + Log.i(TAG, "$logPrefix Inserting single update message for no local state or restore placeholder") + profileAndMessageHelper.insertUpdateMessages(timestamp, null, setOf(AppliedGroupChangeLog(updatedGroupState, null)), null) + } } else { profileAndMessageHelper.insertUpdateMessages(timestamp, currentLocalState, applyGroupStateDiffResult.processedLogEntries, serverGuid) }