Message not decrypted
x3mall1986 opened this issue · 1 comments
Hi. I have some problem. Maybe you can help for me.
I integrate OTRKit in my xmppChat. It works fine. But sometimes, i have problem with decryption messages. In the delegate
- (void)otrKit:(OTRKit *)otrKit decodedMessage:(NSString *)decodedMessage tlvs:(NSArray<OTRTLV *> *)tlvs wasEncrypted:(BOOL)wasEncrypted username:(NSString *)username accountName:(NSString *)accountName protocol:(NSString *)protocol fingerprint:(OTRFingerprint *)fingerprint tag:(id)tag error:(NSError *)error
I get parameters:
decodedMessage
is nil
.
wasEncrypted
= YES
error
= nil
when I'm sending a message from a client which does not decrypt it - everything starts working correctly. It occurs sometimes when connection with internet dropped on client, that encode message.
[self.otrKit fingerprintsForUsername:userName accountName:[self myJID] protocol:@"xmpp"]
have you checked whether the fingerPrint is available ? I also having the same issue. I haven't the saved finger print. like when we delete and start with fresh app while other user use the same key. does anybody knows how we can solve this kind of scenario ?