mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Make sure any JoinedRustRoom is destroyed after use (#4678)
This commit is contained in:
committed by
GitHub
parent
2d189ae775
commit
1904c98c9a
+1
-1
@@ -241,7 +241,7 @@ class CallScreenPresenter @AssistedInject constructor(
|
||||
|
||||
private suspend fun MatrixClient.notifyCallStartIfNeeded(roomId: RoomId) {
|
||||
if (!notifiedCallStart) {
|
||||
getJoinedRoom(roomId)?.sendCallNotificationIfNeeded()
|
||||
getJoinedRoom(roomId)?.use { it.sendCallNotificationIfNeeded() }
|
||||
?.onSuccess { notifiedCallStart = true }
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -47,8 +47,11 @@ class DefaultCallWidgetProvider @Inject constructor(
|
||||
theme = theme,
|
||||
).getOrThrow()
|
||||
|
||||
val driver = room.getWidgetDriver(widgetSettings).getOrThrow()
|
||||
room.destroy()
|
||||
|
||||
CallWidgetProvider.GetWidgetResult(
|
||||
driver = room.getWidgetDriver(widgetSettings).getOrThrow(),
|
||||
driver = driver,
|
||||
url = callUrl,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user