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.
This commit is contained in:
Christian Pauly 2022-04-14 17:06:15 +02:00
parent c5a6cc9a52
commit 4e657f8e09
1 changed files with 2 additions and 0 deletions

View File

@ -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);