guestAccess property

GuestAccess get guestAccess

This event controls whether guest users are allowed to join rooms. If this event is absent, servers should act as if it is present and has the guest_access value "forbidden".

Implementation

GuestAccess get guestAccess {
  final ga = getState(EventTypes.GuestAccess)?.content['guest_access'];
  return ga != null
      ? (_guestAccessMap.map((k, v) => MapEntry(v, k))[ga] ??
          GuestAccess.forbidden)
      : GuestAccess.forbidden;
}