mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-14 18:56:03 +01:00
Merge pull request #5747 from vector-im/feature/adm/concurrent-new-session-crash
Fixing crash when navigating the app whilst room keys are being processed
This commit is contained in:
commit
0bf84341af
1
changelog.d/5746.bugfix
Normal file
1
changelog.d/5746.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixes crash when navigating the app whilst processing new room keys
|
@ -74,7 +74,7 @@ internal class RoomDecryptorProvider @Inject constructor(
|
|||||||
this.newSessionListener = object : NewSessionListener {
|
this.newSessionListener = object : NewSessionListener {
|
||||||
override fun onNewSession(roomId: String?, senderKey: String, sessionId: String) {
|
override fun onNewSession(roomId: String?, senderKey: String, sessionId: String) {
|
||||||
// PR reviewer: the parameter has been renamed so is now in conflict with the parameter of getOrCreateRoomDecryptor
|
// PR reviewer: the parameter has been renamed so is now in conflict with the parameter of getOrCreateRoomDecryptor
|
||||||
newSessionListeners.forEach {
|
newSessionListeners.toList().forEach {
|
||||||
try {
|
try {
|
||||||
it.onNewSession(roomId, senderKey, sessionId)
|
it.onNewSession(roomId, senderKey, sessionId)
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user