Change record_users_in_room to record_room_information.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
projectmoon 2020-11-29 14:02:40 +00:00
parent 224f8cd0f1
commit 91cfc52e5b
1 changed files with 3 additions and 3 deletions

View File

@ -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)