Upgrade Ruma

This commit is contained in:
Jonas Platte 2021-06-17 20:12:36 +02:00
parent 2ac7b6d411
commit f6046871f4
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
7 changed files with 183 additions and 180 deletions

View file

@ -719,7 +719,7 @@ impl Users {
sender: &UserId,
target_user_id: &UserId,
target_device_id: &DeviceId,
event_type: &EventType,
event_type: &str,
content: serde_json::Value,
globals: &super::globals::Globals,
) -> Result<()> {
@ -730,7 +730,7 @@ impl Users {
key.extend_from_slice(&globals.next_count()?.to_be_bytes());
let mut json = serde_json::Map::new();
json.insert("type".to_owned(), event_type.to_string().into());
json.insert("type".to_owned(), event_type.to_owned().into());
json.insert("sender".to_owned(), sender.to_string().into());
json.insert("content".to_owned(), content);