setGuestAccess method

Future<void> setGuestAccess(
  1. GuestAccess guestAccess
)

Changes the guest access. You should check first if the user is able to change it.

Implementation

Future<void> setGuestAccess(GuestAccess guestAccess) async {
  await client.setRoomStateWithKey(
    id,
    EventTypes.GuestAccess,
    '',
    {
      'guest_access': _guestAccessMap[guestAccess],
    },
  );
  return;
}