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