Fix guest access event text, always said "allowed"

This commit is contained in:
miruka 2020-06-25 10:11:42 -04:00
parent 78affeddd9
commit 476888ca84

View File

@ -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)