mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Allow multiple room info updates when receiving a call before deciding the room doesn't have an active call anymore.
This commit is contained in:
committed by
Stefan Ceriu
parent
cf6afcf647
commit
97e23b556f
@@ -176,9 +176,13 @@ class NotificationHandler {
|
||||
if !room.hasActiveRoomCall() { // If I don't have an active call wait a bit and make sure
|
||||
let expiringTask = ExpiringTaskRunner {
|
||||
await withCheckedContinuation { [weak self] continuation in
|
||||
self?.roomInfoObservationToken = room.subscribeToRoomInfoUpdates(listener: SDKListener { _ in
|
||||
MXLog.info("Received room info update")
|
||||
continuation.resume()
|
||||
self?.roomInfoObservationToken = room.subscribeToRoomInfoUpdates(listener: SDKListener { info in
|
||||
if info.hasRoomCall {
|
||||
MXLog.info("Received room info update and the room has an active call now.")
|
||||
continuation.resume()
|
||||
} else {
|
||||
MXLog.info("Received a room info update but the room still doesn't have an ongoing call.")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user