Groups: Only set active_at when changes have happened
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
56b5f20cf2
commit
7124ba36cd
1 changed files with 6 additions and 1 deletions
|
@ -3157,7 +3157,12 @@ async function updateGroup(
|
||||||
// By updating activeAt we force this conversation into the left panel. We don't want
|
// 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.
|
// 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;
|
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;
|
activeAt = initialSentAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue