Rename/Add count methods to count_local_users
This commit is contained in:
parent
567cf6dbe9
commit
d21030566c
2 changed files with 13 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue