{"action":"created","issue":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5296","repository_url":"https://api.github.com/repos/WhisperSystems/Signal-Android","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5296/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5296/comments","events_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5296/events","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/5296","id":136955784,"number":5296,"title":"Phone number change results in bad encrypted messages","user":{"login":"sashw","id":11815131,"avatar_url":"https://avatars.githubusercontent.com/u/11815131?v=3","gravatar_id":"","url":"https://api.github.com/users/sashw","html_url":"https://github.com/sashw","followers_url":"https://api.github.com/users/sashw/followers","following_url":"https://api.github.com/users/sashw/following{/other_user}","gists_url":"https://api.github.com/users/sashw/gists{/gist_id}","starred_url":"https://api.github.com/users/sashw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashw/subscriptions","organizations_url":"https://api.github.com/users/sashw/orgs","repos_url":"https://api.github.com/users/sashw/repos","events_url":"https://api.github.com/users/sashw/events{/privacy}","received_events_url":"https://api.github.com/users/sashw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-27T19:13:21Z","updated_at":"2016-02-28T00:29:11Z","closed_at":null,"body":"When a user changes the phone number (following the corresponding [support](http://support.whispersystems.org/hc/en-us/articles/212535818-What-do-I-do-if-I-get-a-new-number-What-if-I-am-switching-to-a-new-phone-) description) the 'old' encryption keys for already existing sessions are still used. Sent messages therefore can't be read by recipients. [Reset of the keys](http://support.whispersystems.org/hc/en-us/articles/215238178-What-do-I-do-if-I-have-a-bad-encrypted-message-) solves this issue. \r\n\r\nAt least this was what happened when a friend from my contact list got a new phone number. All messages he first sent couldn't be decrypted, other contacts had the same problem. Maybe the reset of (existing) session keys could be triggered by the app once a phone number gets registered in order to avoid this problem.\r\n\r\nAndroid version: CM12.1\r\nSignal version: 3.9.1 (Outdated, I know, but I haven't seen a commit since then which might affect this issue)"},"comment":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/comments/189753681","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/5296#issuecomment-189753681","issue_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5296","id":189753681,"user":{"login":"2-4601","id":174176,"avatar_url":"https://avatars.githubusercontent.com/u/174176?v=3","gravatar_id":"","url":"https://api.github.com/users/2-4601","html_url":"https://github.com/2-4601","followers_url":"https://api.github.com/users/2-4601/followers","following_url":"https://api.github.com/users/2-4601/following{/other_user}","gists_url":"https://api.github.com/users/2-4601/gists{/gist_id}","starred_url":"https://api.github.com/users/2-4601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2-4601/subscriptions","organizations_url":"https://api.github.com/users/2-4601/orgs","repos_url":"https://api.github.com/users/2-4601/repos","events_url":"https://api.github.com/users/2-4601/events{/privacy}","received_events_url":"https://api.github.com/users/2-4601/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T00:29:11Z","updated_at":"2016-02-28T00:29:11Z","body":"Thanks, it would be helpful if you could describe what happened step by step with as much detail as you can remember. Now you mostly concentrated on interpreting what happened instead of describing what actually happened :smile: "}}