From 3fcb7bc501b0de150e93df04b2798db4d967512e Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 11 May 2023 14:04:42 +0300 Subject: [PATCH] Show more descriptive errors when failing to retrieve a room tuple --- ElementX/Sources/Services/Client/ClientProxy.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index fd8627eb4..60850725a 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -190,7 +190,13 @@ class ClientProxy: ClientProxyProtocol { self.roomTupleForIdentifier(identifier) } - guard let slidingSyncRoom, let room else { + guard let slidingSyncRoom else { + MXLog.error("Invalid slidingSyncRoom for identifier \(identifier)") + return nil + } + + guard let room else { + MXLog.error("Invalid slidingSyncRoom fullRoom for identifier \(identifier)") return nil }