setGuestAccess method
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': guestAccess.text,
});
return;
}