fix: workaround for missing avatars on element and rooms becoming historical

This commit is contained in:
Timo Kösters 2022-10-11 17:10:09 +02:00
parent fb6bfa9753
commit 31d1801912
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
2 changed files with 15 additions and 0 deletions

View file

@ -433,6 +433,8 @@ async fn sync_helper(
} else if !lazy_load_enabled
|| body.full_state
|| timeline_users.contains(&state_key)
// TODO: Delete the following line when this is resolved: https://github.com/vector-im/element-web/issues/22565
|| *sender_user == state_key
{
let pdu = match services().rooms.timeline.get_pdu(&id)? {
Some(pdu) => pdu,