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

Weird behaviour after mixup with keys #1127

Closed
tetris4 opened this issue Dec 30, 2017 · 3 comments
Closed

Weird behaviour after mixup with keys #1127

tetris4 opened this issue Dec 30, 2017 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tetris4
Copy link
Contributor

tetris4 commented Dec 30, 2017

Instead of retrieving my key, I accidentally registered a second key. I then reverted back to my original key but now experience the following weird behavior:

When I send a message to my friends phone:

  • she can properly see my message
  • she gets a red prompt bar at the bottom that my key has changed
  • if she taps on the prompt and selects identity it still shows my old key
  • no matter how many times she accepts the (old) key, she keeps getting the key has changed notification.

When she sends me a message, I receive the message but I can't read it, it only says 'encrypted' in a bubble.

I tried refreshing the contacts on both devices several times but it didn't help.

Kontalk version: We are both running 4.1.2, me on f-droid and she on the google play version.
Android version: Me on LineageOS 12.1 (Android 5.1.1) and she on 7.0.
Device model: I am using a Samsung Galaxy Note 1 and she is using a Huawei P8 Lite 2017.

@daniele-athome daniele-athome self-assigned this Dec 31, 2017
@daniele-athome daniele-athome added the bug Something isn't working label Dec 31, 2017
@daniele-athome
Copy link
Member

This is a long-standing bug that should have been fixed a few releases ago but apparently didn't :-(
Her app is using your old key to encrypt messages to you therefore you can't decrypt them.

Since the problem is actually on her side, I don't remember if you already asked her to delete her app data (she will lose all messages though). That should clear any leftover from previous versions.
If she has root access and you don't want to lose the messages:

  • force stop Kontalk
  • delete /data/data/org.kontalk/databases/keys.db
  • start Kontalk again

In both cases, trust settings will be cleared and she'll have to trust all keys again (but that's what we want actually). Now that I think about it, I should make a maintenance preference to do just that.

@tetris4
Copy link
Contributor Author

tetris4 commented Dec 31, 2017

Force stop was grayed out on her phone, so I just cleared the data. There was no org.kontalk folder, probably got deleted while clearing the data. I started Kontalk again, refreshed contacts, and voila, it works! 👍 Thanks @daniele-athome!

Since you tagged this as a bug, am leaving it open so it can be tackled in the future.

@daniele-athome
Copy link
Member

Closed by #1171.

@daniele-athome daniele-athome added this to the Next milestone Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants