Rename/Add count methods to count_local_users

This commit is contained in:
Torsten Flammiger 2021-12-25 21:29:03 +01:00
parent 567cf6dbe9
commit d21030566c
2 changed files with 13 additions and 1 deletions

View file

@ -96,7 +96,7 @@ impl Admin {
match event {
AdminCommand::CountUsers => {
// count() does not return an error on failure...
if let Ok(usercount) = guard.users.count() {
if let Ok(usercount) = guard.users.count_local_users() {
let message = format!("Found {} total user accounts", usercount);
send_message(RoomMessageEventContent::text_plain(message), guard, &state_lock);
} else {