Remove accepted message without explicit user action

This commit is contained in:
Jamie Kyle 2024-03-15 12:11:48 -07:00 committed by GitHub
parent 8a21f8655f
commit 11ea595457
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 28 additions and 39 deletions

View file

@ -2163,11 +2163,15 @@ export class ConversationModel extends window.Backbone
if (didResponseChange) {
if (response === messageRequestEnum.ACCEPT) {
drop(
this.addMessageRequestResponseEventMessage(
MessageRequestResponseEvent.ACCEPT
)
);
// Only add a message when the user took an explicit action to accept
// the message request on one of their devices
if (!viaStorageServiceSync) {
drop(
this.addMessageRequestResponseEventMessage(
MessageRequestResponseEvent.ACCEPT
)
);
}
}
if (
response === messageRequestEnum.BLOCK ||