From b72fb50ea00ffa52949155b8513f8d766ba03d1c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 10 Dec 2024 10:01:47 +1000 Subject: [PATCH] Groups: Only set active_at when changes have happened --- ts/groups.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ts/groups.ts b/ts/groups.ts index b0076f6746b..7046175358e 100644 --- a/ts/groups.ts +++ b/ts/groups.ts @@ -3157,7 +3157,12 @@ async function updateGroup( // By updating activeAt we force this conversation into the left panel. We don't want // all groups to show up on link, and we don't want Unknown Group in the left pane. let activeAt = conversation.get('active_at') || null; - if (!viaFirstStorageSync && newAttributes.name) { + const justDiscoveredGroupName = + !conversation.get('name') && newAttributes.name; + if ( + !viaFirstStorageSync && + (justDiscoveredGroupName || groupChangeMessages.length) + ) { activeAt = initialSentAt; }