diff --git a/NSE/Sources/NotificationHandler.swift b/NSE/Sources/NotificationHandler.swift index e0c35d655..69aa4686b 100644 --- a/NSE/Sources/NotificationHandler.swift +++ b/NSE/Sources/NotificationHandler.swift @@ -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.") + } }) } }