On link, ensure group conversations are shown in search

This commit is contained in:
trevor-signal 2024-12-10 13:04:00 -05:00 committed by GitHub
parent 402b256c66
commit 9722ef5672
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 3 deletions

View file

@ -407,6 +407,8 @@ export class ConversationModel extends window.Backbone
this.unset('tokens');
this.on('change:members change:membersV2', this.fetchContacts);
this.on('change:active_at', this.onActiveAtChange);
this.typingRefreshTimer = null;
this.typingPauseTimer = null;
@ -4455,6 +4457,13 @@ export class ConversationModel extends window.Backbone
}
}
private async onActiveAtChange(): Promise<void> {
if (this.get('active_at') && this.get('messagesDeleted')) {
this.set('messagesDeleted', false);
await DataWriter.updateConversation(this.attributes);
}
}
async refreshGroupLink(): Promise<void> {
if (!isGroupV2(this.attributes)) {
return;
@ -5228,6 +5237,7 @@ export class ConversationModel extends window.Backbone
timestamp: null,
active_at: null,
pendingUniversalTimer: undefined,
messagesDeleted: true,
});
await DataWriter.updateConversation(this.attributes);