Log room retrieval failure in Client::process_sync

master
Jonas Platte 2021-09-08 19:22:54 +02:00
parent ddea1bdb9e
commit cb33f26d5c
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
1 changed files with 4 additions and 4 deletions

View File

@ -2053,7 +2053,7 @@ impl Client {
for (room_id, room_info) in &rooms.join { for (room_id, room_info) in &rooms.join {
let room = self.get_room(room_id); let room = self.get_room(room_id);
if room.is_none() { if room.is_none() {
// raise warning? error!("Can't call event handler, room {} not found", room_id);
continue; continue;
} }
@ -2070,7 +2070,7 @@ impl Client {
for (room_id, room_info) in &rooms.leave { for (room_id, room_info) in &rooms.leave {
let room = self.get_room(room_id); let room = self.get_room(room_id);
if room.is_none() { if room.is_none() {
// raise warning? error!("Can't call event handler, room {} not found", room_id);
continue; continue;
} }
@ -2085,7 +2085,7 @@ impl Client {
for (room_id, room_info) in &rooms.invite { for (room_id, room_info) in &rooms.invite {
let room = self.get_room(room_id); let room = self.get_room(room_id);
if room.is_none() { if room.is_none() {
// raise warning? error!("Can't call event handler, room {} not found", room_id);
continue; continue;
} }
@ -2099,7 +2099,7 @@ impl Client {
let room = match self.get_room(room_id) { let room = match self.get_room(room_id) {
Some(room) => room, Some(room) => room,
None => { None => {
// raise warning? warn!("Can't call notification handler, room {} not found", room_id);
continue; continue;
} }
}; };