updateDeleteMessageWhenLeaveRoomSetting method

Future<void> updateDeleteMessageWhenLeaveRoomSetting(
  1. bool deleteMessageWhenLeaveRoom
)

Implementation

Future<void> updateDeleteMessageWhenLeaveRoomSetting(
    bool deleteMessageWhenLeaveRoom) async {
  Map req = {'deleteMessageWhenLeaveRoom': deleteMessageWhenLeaveRoom};
  Map result = await ClientChannel.invokeMethod(
      ChatMethodKeys.updateDeleteMessageWhenLeaveRoomSetting, req);
  try {
    EMError.hasErrorFromResult(result);
    _options = _options?.copyWith(
        deleteMessageWhenLeaveRoom: deleteMessageWhenLeaveRoom);
  } on EMError catch (e) {
    throw e;
  }
}