From 62a7cc66bce07c89fe6aca129297e0028737d761 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 27 Aug 2022 22:33:40 +0200 Subject: [PATCH] Allow event ids from clients --- src/usimp/handler/new_event.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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?;