Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message not decrypted #36

Open
x3mall1986 opened this issue Apr 19, 2017 · 1 comment
Open

Message not decrypted #36

x3mall1986 opened this issue Apr 19, 2017 · 1 comment

Comments

@x3mall1986
Copy link

x3mall1986 commented Apr 19, 2017

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.

@sansuba
Copy link

sansuba commented Jul 31, 2017

[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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants