Upgrade ruma
This commit is contained in:
parent
910ad7fed1
commit
979ec6b4fa
6 changed files with 76 additions and 92 deletions
|
@ -252,12 +252,7 @@ impl Rooms {
|
|||
return Ok(HashMap::new());
|
||||
};
|
||||
|
||||
let auth_events = state_res::auth_types_for_event(
|
||||
kind,
|
||||
sender,
|
||||
state_key.map(|s| s.to_string()),
|
||||
content.clone(),
|
||||
);
|
||||
let auth_events = state_res::auth_types_for_event(kind, sender, state_key, &content);
|
||||
|
||||
let mut sauthevents = auth_events
|
||||
.into_iter()
|
||||
|
@ -2046,10 +2041,10 @@ impl Rooms {
|
|||
|
||||
let auth_check = state_res::auth_check(
|
||||
&room_version,
|
||||
&Arc::new(pdu.clone()),
|
||||
&pdu,
|
||||
create_prev_event,
|
||||
None, // TODO: third_party_invite
|
||||
|k, s| auth_events.get(&(k.clone(), s.to_owned())).map(Arc::clone),
|
||||
None::<PduEvent>, // TODO: third_party_invite
|
||||
|k, s| auth_events.get(&(k.clone(), s.to_owned())),
|
||||
)
|
||||
.map_err(|e| {
|
||||
error!("{:?}", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue