diff --git a/src/usimp/handler/new_event.rs b/src/usimp/handler/new_event.rs index 175458f..d9ec144 100644 --- a/src/usimp/handler/new_event.rs +++ b/src/usimp/handler/new_event.rs @@ -26,7 +26,10 @@ async fn new_event(input: Input, session: Option) -> Result id, + None => Uuid::new_v4(), + }; event.id = Some(uuid); uuids.push(uuid); subscription::push_room(&input.room_id, event).await?;