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

@ -473,7 +473,7 @@ impl Service {
let state = services()
.rooms
.state
.calculate_invite_state(pdu)?;
.get_helpful_invite_events(pdu)?;
Some(state)
}
_ => None,