feat(appservice): support timestamped messaging

This commit is contained in:
Matthias Ahouansou 2024-06-22 11:50:39 +01:00
parent 4b9520b5ad
commit 62f1da053f
No known key found for this signature in database
11 changed files with 68 additions and 6 deletions

View file

@ -84,6 +84,11 @@ pub 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,