support timestamped appservice messaging

Co-authored-by: strawberry <strawberry@puppygock.gay>
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
Matthias Ahouansouandstrawberry authored and Jason Volk committed 2024-08-29 19:19:20 +00:00
1 parent 66679c7522
commit 2d9aab2e79
14 files changed
+69 -5

No files matched your search

+5
View File
@@ -84,6 +84,11 @@ pub(crate) async fn send_message_event_route(
unsigned: Some(unsigned),
state_key: None,
redacts: None,
timestamp: if body.appservice_info.is_some() {
body.timestamp
} else {
None
},
},
sender_user,
&body.room_id,