fix: throw error on failed reaction send

This commit is contained in:
Mohammad Reza Moradi 2024-12-05 13:13:47 +01:00
parent fd2f90903f
commit 04612a2296
No known key found for this signature in database
GPG Key ID: 5255BD653356ACD7
1 changed files with 4 additions and 1 deletions

View File

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