Skip to content

Commit 86da4f7

Browse files
committed
Also fix share presenter closing the room if it's held
1 parent 9b5fa77 commit 86da4f7

File tree

1 file changed

+5
-1
lines changed
  • features/share/impl/src/main/kotlin/io/element/android/features/share/impl

1 file changed

+5
-1
lines changed

features/share/impl/src/main/kotlin/io/element/android/features/share/impl/SharePresenter.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ class SharePresenter @AssistedInject constructor(
9595
).isSuccess
9696
}
9797
.all { it }
98-
.also { room.destroy() }
98+
.also {
99+
if (activeRoomHolder.getActiveRoomMatching(matrixClient.sessionId, roomId) == null) {
100+
room.destroy()
101+
}
102+
}
99103
}
100104
.all { it }
101105
}

0 commit comments

Comments
 (0)