mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Fix map_or calling function.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
25164e030d
commit
95e49d3cb8
2 files changed
+23
-21
No files matched your search
@@ -132,7 +132,7 @@ pub(crate) async fn get_context_route(
|
||||
let state_at = events_after
|
||||
.last()
|
||||
.map(ref_at!(1))
|
||||
.map_or(body.event_id.as_ref(), |pdu| pdu.event_id.as_ref());
|
||||
.map_or_else(|| body.event_id.as_ref(), |pdu| pdu.event_id.as_ref());
|
||||
|
||||
let state_ids = services
|
||||
.rooms
|
||||
|
||||
Reference in new issue
Block a user