Find correct session state in case the same one is used twice.
The code made the assumption that a session state can be identified by the unique session ID. However, when multiple identities from the same device are involved, there are two sessions with the same ID running on the device. Hence, a second identifying criteria has to be used to uniquely identify the correct session. Here, the ID of the group was chosen. Unfortunately, the session state can not be cached easily anymore leading to a small performance penalty when getting all messages for the UI.
Showing
- briar-android/src/org/briarproject/android/contact/ConversationActivity.java 2 additions, 2 deletions...rg/briarproject/android/contact/ConversationActivity.java
- briar-api/src/org/briarproject/api/introduction/IntroductionManager.java 7 additions, 6 deletions...rg/briarproject/api/introduction/IntroductionManager.java
- briar-core/src/org/briarproject/introduction/IntroduceeManager.java 14 additions, 7 deletions.../src/org/briarproject/introduction/IntroduceeManager.java
- briar-core/src/org/briarproject/introduction/IntroductionManagerImpl.java 28 additions, 19 deletions...rg/briarproject/introduction/IntroductionManagerImpl.java
Loading
Please register or sign in to comment