From 4e657f8e09fc38607b1e85387aa882ad67a89c6a Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 14 Apr 2022 17:06:15 +0200 Subject: [PATCH] fix: Ignore no permission errors on requesting users In theory even in invite or left rooms it can be possible to request a room state regarding the spec. In most cases it will throw an error though. --- lib/src/room.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/room.dart b/lib/src/room.dart index 9a37956f..6f6ddba6 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1451,6 +1451,8 @@ class Room { EventTypes.RoomMember, mxID, ); + } on MatrixException catch (_) { + // Ignore if we have no permission } catch (e, s) { if (!ignoreErrors) { _requestingMatrixIds.remove(mxID);