From f3dbfb5ad53b0000a5153a2d9181e0002e855489 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Fri, 25 Apr 2025 23:51:23 +0100 Subject: [PATCH] chore: Error on missing ID in messages --- src/api/client/message.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api/client/message.rs b/src/api/client/message.rs index e442850b..16b1796a 100644 --- a/src/api/client/message.rs +++ b/src/api/client/message.rs @@ -143,10 +143,7 @@ pub(crate) async fn get_message_events_route( if let Some(registration) = body.appservice_info.as_ref() { <&DeviceId>::from(registration.registration.id.as_str()) } else { - panic!( - "No device_id provided and no appservice registration found, this \ - should be unreachable" - ); + panic!("No device_id provided and no appservice registration found, this should be unreachable"); }, }, room_id,