Fixed conditional stopping sync of convo approval from firing due to inferred approval from polled messages with incoming direction.

pull/2222/head
warrickct 3 years ago
parent 2d9679315c
commit 2b84a53959

@ -631,8 +631,11 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
const hasIncomingMessages = incomingMessageCount > 0;
if (shouldApprove) {
await this.setIsApproved(true);
if (!this.didApproveMe() && hasIncomingMessages) {
await this.setDidApproveMe(true);
if (hasIncomingMessages) {
if (!this.didApproveMe()) {
await this.setDidApproveMe(true);
}
// should only send once
await this.sendMessageRequestResponse(true);
void forceSyncConfigurationNowIfNeeded();
}

Loading…
Cancel
Save