refactor: Fixed logical condition for evil events

This commit is contained in:
Andriy Kushnir (Orhideous) 2022-12-14 18:02:35 +02:00 committed by Nyaaori
parent 1fabc3cd69
commit 330e68eb93
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

View file

@ -1093,7 +1093,7 @@ fn get_missing_events(
match event_room_id {
Some(event_room_id) => {
let valid_event = event_room_id != room_id;
let valid_event = event_room_id == room_id;
if !valid_event {
error!(?room_id, ?event_room_id, "An evil event detected");
}