From 18bfd79ef2d4a0bb18622bb25b3da23e05a04481 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Fri, 1 Dec 2023 18:15:20 +0100 Subject: [PATCH] Remove "creator" key when upgrading rooms to v11 --- src/api/client_server/room.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/client_server/room.rs b/src/api/client_server/room.rs index 6b824040..5f62e9fa 100644 --- a/src/api/client_server/room.rs +++ b/src/api/client_server/room.rs @@ -627,7 +627,10 @@ pub async fn upgrade_room_route( })?, ); } - _ => {} // V11 removed the "creator" key + _ => { + // "creator" key no longer exists in V11 rooms + create_event_content.remove("creator"); + } } create_event_content.insert( "room_version".into(),