Groups: Only set active_at when changes have happened

This commit is contained in:
automated-signal 2024-12-10 12:04:21 -06:00 committed by GitHub
parent 441e9b4e3c
commit 291fcffff6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}