Authenticate the incoming
For the given event
Can this room federate based on its m.room.create event.
Is the user allowed to send a specific event based on the rooms power levels. Does the event have the correct userId as it’s state_key if it’s not the “” state_key.
Check user can send invite.
Is the event’s sender in the room that they sent the event to.
Check that the member event matches
Confirm that the event sender has the required power levels.
Does the event redacting come from a user with enough power to redact the given event.
Helper function to fetch a field,
Helper function to fetch the power level needed to send an event of type
Helper function to fetch a users default power level from a “m.room.power_level” event’s
Does the user who sent this member event have required power levels to do so.