mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Refactor to async closures.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
cca0f20148
commit
c8d35cca57
36 files changed
+78
-80
No files matched your search
@@ -205,12 +205,12 @@ impl Service {
|
||||
let user_ids: Vec<_> = typing_indicators
|
||||
.into_keys()
|
||||
.stream()
|
||||
.filter_map(|typing_user_id| async move {
|
||||
(!self
|
||||
.services
|
||||
.filter_map(async |typing_user_id| {
|
||||
self.services
|
||||
.users
|
||||
.user_is_ignored(&typing_user_id, sender_user)
|
||||
.await)
|
||||
.await
|
||||
.eq(&false)
|
||||
.then_some(typing_user_id)
|
||||
})
|
||||
.collect()
|
||||
|
||||
Reference in new issue
Block a user