Inserting new SIM in a dual-SIM phone causes problem with encrypted messages
Created by: Chewie9999
Ever since I inserted a second SIM into my phone (Fairphone 2, Android 5.1), Silence seems to be confused. See below screenshot:
The first 2 messages from 11th May were to my "Personal" SIM, and before I added a temporary one ("Kathryn") to the spare SIM slot in my phone. They should still be listed as being received to "Personal", but they say "Kathryn". When I first opened Silence (0.16.3-unstable) after installing this SIM, it did say it was generating new keys for the new SIM. I have sent a couple of messages from this new SIM, but never any encrypted ones. Note the obscured message at the bottom reads "Message encrypted for non-existing session", which sounds like Silence is trying to use the new key for "Kathryn" instead of the correct "Personal" key.
Also note the options I have when sending are "Insecure" for both SIMs, and encrypted for the "Kathryn" SIM, instead of the other way around.
This problem may be related to #586 .