From 91cfc52e5b94833353022fe90ffd7b647ca2f69c Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sun, 29 Nov 2020 14:02:40 +0000 Subject: [PATCH] Change record_users_in_room to record_room_information. --- src/bot/event_handlers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bot/event_handlers.rs b/src/bot/event_handlers.rs index c44f6db..3792916 100644 --- a/src/bot/event_handlers.rs +++ b/src/bot/event_handlers.rs @@ -92,7 +92,7 @@ fn should_process_event(db: &Database, room_id: &str, event_id: &str) -> bool { }) } -async fn record_users_in_room( +async fn record_room_information( client: &matrix_sdk::Client, db: &crate::db::Database, room: &matrix_sdk::Room, @@ -138,8 +138,8 @@ impl EventEmitter for DiceBot { info!("Clearing all information for room ID {}", room_id); self.db.rooms.clear_info(room_id) } else if event_affects_us && adding_user { - info!("Joined room {}; recording user information", room_id); - record_users_in_room(&self.client, &self.db, &room, &event.state_key).await + info!("Joined room {}; recording room information", room_id); + record_room_information(&self.client, &self.db, &room, &event.state_key).await } else if !event_affects_us && adding_user { info!("Adding user {} to room ID {}", username, room_id); self.db.rooms.add_user_to_room(username, room_id)