From 04612a2296ec6997cb7c9ecd65166d3f24307792 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Moradi Date: Thu, 5 Dec 2024 13:13:47 +0100 Subject: [PATCH] fix: throw error on failed reaction send --- lib/src/room.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/room.dart b/lib/src/room.dart index 10b9db30..5285017f 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1128,7 +1128,10 @@ class Room { await _handleFakeSync(syncUpdate); completer.complete(); _sendingQueue.remove(completer); - if (e is EventTooLarge) rethrow; + if (e is EventTooLarge || + (e is MatrixException && e.error == MatrixError.M_FORBIDDEN)) { + rethrow; + } return null; } else { Logs()