Skip to content

Commit c8f8f07

Browse files
Fix receiving short OMEMO messages with auth tags from Conversations
1 parent 36dc113 commit c8f8f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChatSecure/Classes/Controllers/OTROMEMOSignalCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ import YapDatabase
352352

353353
open func processKeyData(_ keyData: [OMEMOKeyData], iv: Data, senderDeviceId: UInt32, fromJID: XMPPJID, payload: Data?, message: XMPPMessage) {
354354
let aesGcmBlockLength = 16
355-
guard let encryptedPayload = payload, encryptedPayload.count > aesGcmBlockLength else {
355+
guard let encryptedPayload = payload, encryptedPayload.count > 0 else {
356356
return
357357
}
358358

0 commit comments

Comments
 (0)