chore: refactor account and fixes

This commit is contained in:
2025-04-21 15:18:02 +07:00
parent a30f2dcc8a
commit 87f038248c
10 changed files with 270 additions and 184 deletions

View File

@@ -337,13 +337,7 @@ impl Room {
.author(*pubkey)
.limit(1);
let is_ready = client
.database()
.query(filter)
.await
.ok()
.and_then(|events| events.first_owned())
.is_some();
let is_ready = client.database().query(filter).await?.first().is_some();
result.push((*pubkey, is_ready));
}