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:
commit
4cd10b2e0f
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue