mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-08-16 18:01:35 +00:00
Upgrade Ruma
This commit is contained in:
parent
39bc84d81c
commit
eeda7cbe0a
4 changed files with 14 additions and 17 deletions
|
@ -416,7 +416,7 @@ pub async fn get_member_events_route(
|
|||
.room_state_full(&body.room_id)?
|
||||
.iter()
|
||||
.filter(|(key, _)| key.0 == StateEventType::RoomMember)
|
||||
.map(|(_, pdu)| pdu.to_member_event().into())
|
||||
.map(|(_, pdu)| pdu.to_member_event().cast())
|
||||
.collect(),
|
||||
})
|
||||
}
|
||||
|
|
|
@ -274,10 +274,7 @@ async fn send_notice(
|
|||
};
|
||||
|
||||
let mut device = Device::new(pusher.app_id.clone(), pusher.pushkey.clone());
|
||||
let mut data_minus_url = pusher.data.clone();
|
||||
// The url must be stripped off according to spec
|
||||
data_minus_url.url = None;
|
||||
device.data = data_minus_url;
|
||||
device.data = pusher.data.clone().into();
|
||||
|
||||
// Tweaks are only added if the format is NOT event_id_only
|
||||
if !event_id_only {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue