Abstract Pdu filter matching into trait Event.
Abstract Pdu unsigned accessors into trait Event. Abstract Pdu relation related into trait Event. Abstract PDU content into trait Event. Move event_id utils from pdu to event. Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -279,13 +279,13 @@ impl Service {
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
let response_sender = if self.is_admin_room(&pdu.room_id).await {
|
||||
let response_sender = if self.is_admin_room(pdu.room_id()).await {
|
||||
&self.services.globals.server_user
|
||||
} else {
|
||||
&pdu.sender
|
||||
pdu.sender()
|
||||
};
|
||||
|
||||
self.respond_to_room(content, &pdu.room_id, response_sender)
|
||||
self.respond_to_room(content, pdu.room_id(), response_sender)
|
||||
.boxed()
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user