refactor calculate_invite_state

That was terribly named and terribly implemented.

Co-authored-by: Charles Hall <charles@computer.surgery>
This commit is contained in:
mikoto 2024-09-17 18:07:58 +02:00 committed by Charles Hall
parent e14b7f28f2
commit 287f6b9163
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 34 additions and 49 deletions

View file

@ -1307,7 +1307,7 @@ pub(crate) async fn invite_helper(
)?;
let invite_room_state =
services().rooms.state.calculate_invite_state(&pdu)?;
services().rooms.state.get_helpful_invite_events(&pdu)?;
drop(room_token);