File tree 2 files changed +5
-2
lines changed
features/share/impl/src/main/kotlin/io/element/android/features/share/impl
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/widget
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,11 @@ class SharePresenter @AssistedInject constructor(
95
95
).isSuccess
96
96
}
97
97
.all { it }
98
- .also { room.destroy() }
98
+ .also {
99
+ if (activeRoomHolder.getActiveRoomMatching(matrixClient.sessionId, roomId) == null ) {
100
+ room.destroy()
101
+ }
102
+ }
99
103
}
100
104
.all { it }
101
105
}
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ package io.element.android.libraries.matrix.impl.widget
9
9
10
10
import io.element.android.libraries.matrix.api.widget.MatrixWidgetDriver
11
11
import io.element.android.libraries.matrix.api.widget.MatrixWidgetSettings
12
- import io.element.android.libraries.matrix.impl.room.JoinedRustRoom
13
12
import kotlinx.coroutines.CoroutineScope
14
13
import kotlinx.coroutines.Dispatchers
15
14
import kotlinx.coroutines.Job
You can’t perform that action at this time.
0 commit comments