Minimize downstream effects of storage sync
This commit is contained in:
parent
b914b59969
commit
9002b21a6b
2 changed files with 17 additions and 5 deletions
|
@ -1230,6 +1230,9 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
const isLocalAction = !fromSync && !viaStorageServiceSync;
|
||||
const ourConversationId = window.ConversationController.getOurConversationId();
|
||||
|
||||
const currentMessageRequestState = this.get('messageRequestResponseType');
|
||||
const didResponseChange = response !== currentMessageRequestState;
|
||||
|
||||
// Apply message request response locally
|
||||
this.set({
|
||||
messageRequestResponseType: response,
|
||||
|
@ -1240,7 +1243,9 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
this.unblock({ viaStorageServiceSync });
|
||||
this.enableProfileSharing({ viaStorageServiceSync });
|
||||
|
||||
await this.handleReadAndDownloadAttachments({ isLocalAction });
|
||||
if (didResponseChange) {
|
||||
await this.handleReadAndDownloadAttachments({ isLocalAction });
|
||||
}
|
||||
|
||||
if (isLocalAction) {
|
||||
if (this.isGroupV1() || this.isPrivate()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue