chore: Error on missing ID in messages

This commit is contained in:
Jade Ellis 2025-04-25 23:51:23 +01:00 committed by Jacob Taylor
parent 0936ad1fb8
commit f3dbfb5ad5

View file

@ -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,