Upgrade Ruma

This commit is contained in:
Jonas Platte 2022-02-12 02:06:30 +01:00
parent 9db0473ed5
commit 50b24b37c2
No known key found for this signature in database
GPG key ID: 7D261D771D915378
6 changed files with 34 additions and 32 deletions

View file

@ -23,13 +23,10 @@ pub async fn get_context_route(
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
let sender_device = body.sender_device.as_ref().expect("user is authenticated");
// Load filter
let filter = body.filter.clone().unwrap_or_default();
let (lazy_load_enabled, lazy_load_send_redundant) = match filter.lazy_load_options {
let (lazy_load_enabled, lazy_load_send_redundant) = match &body.filter.lazy_load_options {
LazyLoadOptions::Enabled {
include_redundant_members: redundant,
} => (true, redundant),
include_redundant_members,
} => (true, *include_redundant_members),
_ => (false, false),
};