From 24c544f65001ae30792dd9e274fb2c170f10ba22 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Fri, 26 Jun 2020 10:07:02 +0200 Subject: [PATCH] fix: DMs show up as rooms --- src/database/rooms.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/database/rooms.rs b/src/database/rooms.rs index bd1a7ba..b7f7221 100644 --- a/src/database/rooms.rs +++ b/src/database/rooms.rs @@ -504,6 +504,10 @@ impl Rooms { if let Some(state_key) = &state_key { if let Some(prev_pdu) = self.room_state_get(&room_id, &event_type, &state_key)? { unsigned.insert("prev_content".to_owned(), prev_pdu.content.clone()); + unsigned.insert( + "prev_sender".to_owned(), + serde_json::to_value(prev_pdu.sender).expect("UserId::to_value always works"), + ); } }