mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-08-31 02:22:29 +00:00
feat: add an approximate member count to servers (#884)
* feat: add an approximate member count to servers Signed-off-by: Zomatree <me@zomatree.live> * fix: use approx member count on invites Signed-off-by: Zomatree <me@zomatree.live> --------- Signed-off-by: Zomatree <me@zomatree.live>
This commit is contained in:
@@ -307,7 +307,7 @@ impl State {
|
||||
Ok(EventV1::Ready {
|
||||
users: if fields.users { Some(users) } else { None },
|
||||
servers: if fields.servers {
|
||||
Some(servers.into_iter().map(Into::into).collect())
|
||||
Some(join_all(servers.into_iter().map(|server| server.into(db))).await)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user