fix: send state in /sync, element displays wrong membership changes

This commit is contained in:
Timo Kösters 2020-12-22 20:08:20 +01:00
parent 6606e41dde
commit f12fbca3c5
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 55 additions and 18 deletions

View file

@ -686,7 +686,7 @@ async fn join_room_by_id_helper(
pdu_id.extend_from_slice(&count.to_be_bytes());
db.rooms.append_pdu(
&PduEvent::from(&**pdu),
&utils::to_canonical_object(&**pdu).expect("Pdu is valid canonical object"),
utils::to_canonical_object(&**pdu).expect("Pdu is valid canonical object"),
count,
pdu_id.clone().into(),
&db.globals,