updateDeleteMessageWhenLeaveRoomSetting method
Future<void>
updateDeleteMessageWhenLeaveRoomSetting( - 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;
}
}