improvement: correct thumbnailing algorithm

This commit is contained in:
Timo Kösters 2020-10-19 15:29:36 +02:00
parent cde4178f4a
commit 6bb8284fc0
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 81 additions and 4 deletions

View file

@ -561,10 +561,10 @@ async fn join_room_by_id_helper(
.chain(iter::once(Ok((event_id, join_event)))) // Add join event we just created
.map(|r| {
let (event_id, value) = r?;
serde_json::from_value::<StateEvent>(value)
serde_json::from_value::<StateEvent>(value.clone())
.map(|ev| (event_id, Arc::new(ev)))
.map_err(|e| {
warn!("{}", e);
warn!("{}: {}", value, e);
Error::BadServerResponse("Invalid PDU bytes in send_join response.")
})
})