Fix guest access event text, always said "allowed"
This commit is contained in:
parent
78affeddd9
commit
476888ca84
|
@ -249,7 +249,7 @@ class NioCallbacks:
|
|||
async def onRoomGuestAccessEvent(
|
||||
self, room: nio.MatrixRoom, ev: nio.RoomGuestAccessEvent,
|
||||
) -> None:
|
||||
allowed = "allowed" if ev.guest_access else "forbad"
|
||||
allowed = "allowed" if ev.guest_access == "can_join" else "forbad"
|
||||
co = f"%1 {allowed} guests to join the room"
|
||||
await self.client.register_nio_event(room, ev, content=co)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user