Skip to content

Commit

Permalink
Drop the status when a SIGNAL_KEY message is received
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyuehyang committed Jul 14, 2022
1 parent e6b632c commit d43bd60
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ public class ReceiveMessageService: MixinService {
]
NotificationCenter.default.post(name: Self.senderKeyDidChangeNotification, object: self, userInfo: userInfo)
}
self.updatePendingMessageStatuses { [id = data.messageId] statuses in
statuses[id] = nil
Logger.general.debug(category: "ReceiveMessageService", message: "Dropped status for signalkey message: \(id)")
}
}
})
let status = RatchetSenderKeyDAO.shared.getRatchetSenderKeyStatus(groupId: data.conversationId, senderId: data.userId, sessionId: data.sessionId)
Expand Down

0 comments on commit d43bd60

Please sign in to comment.