Merge pull request #1966 from famedly/reza/send-reaction-on-only-admin-can-send-message-room

Throw error on failed reaction send
This commit is contained in:
rmoradi88 2024-12-06 15:39:45 +01:00 committed by GitHub
commit 4cd10b2e0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -1128,7 +1128,10 @@ class Room {
await _handleFakeSync(syncUpdate); await _handleFakeSync(syncUpdate);
completer.complete(); completer.complete();
_sendingQueue.remove(completer); _sendingQueue.remove(completer);
if (e is EventTooLarge) rethrow; if (e is EventTooLarge ||
(e is MatrixException && e.error == MatrixError.M_FORBIDDEN)) {
rethrow;
}
return null; return null;
} else { } else {
Logs() Logs()