Skip to content

Commit 5de1a9b

Browse files
committed
Upgrade a warning about missing leave/ban event to error.
If the client isn't alerted to leaving a room this can be pretty serious and represents a flaw in the SDK.
1 parent 9a95f0c commit 5de1a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatrixClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ export class MatrixClient extends EventEmitter {
838838
}
839839
}
840840
if (!leaveEvent) {
841-
LogService.warn("MatrixClientLite", "Left room " + roomId + " without receiving an event");
841+
LogService.error("MatrixClientLite", "Left room " + roomId + " without receiving an event");
842842
continue;
843843
}
844844

0 commit comments

Comments
 (0)