Unarchive conversation if another device sent a message to it

This commit is contained in:
Scott Nonnenberg 2022-09-19 13:40:03 -07:00 committed by GitHub
parent 1c670977d3
commit 5e9f3d5171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -2763,6 +2763,12 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
window.MessageController.register(message.id, message);
conversation.incrementMessageCount();
// If we sent a message in a given conversation, unarchive it!
if (type === 'outgoing') {
conversation.setArchived(false);
}
window.Signal.Data.updateConversation(conversation.attributes);
const reduxState = window.reduxStore.getState();
@ -3017,9 +3023,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
!isGroupStoryReply &&
!keepThisConversationArchived
) {
conversation.set({
isArchived: false,
});
conversation.setArchived(false);
}
if (!isFirstRun && this.pendingMarkRead) {