From 59dd3676d50cb8db76fffa0f6a1286fd7c12a3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Sat, 29 May 2021 10:49:13 +0200 Subject: [PATCH] fix: putting global account data works now --- src/client_server/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_server/config.rs b/src/client_server/config.rs index e7daa9ed..ce437efd 100644 --- a/src/client_server/config.rs +++ b/src/client_server/config.rs @@ -63,7 +63,7 @@ pub async fn set_room_account_data_route( ) -> ConduitResult { let sender_user = body.sender_user.as_ref().expect("user is authenticated"); - let data = serde_json::from_str(body.data.get()) + let data = serde_json::from_str::(body.data.get()) .map_err(|_| Error::BadRequest(ErrorKind::BadJson, "Data is invalid."))?; let event_type = body.event_type.to_string();