changeGroupDescription method

  1. @Deprecated('Use [updateGroupDesc] instead')
Future<void> changeGroupDescription(
  1. String groupId,
  2. String desc
)

Implementation

@Deprecated('Use [updateGroupDesc] instead')
Future<void> changeGroupDescription(
  String groupId,
  String desc,
) async {
  try {
    Map req = {'desc': desc, 'groupId': groupId};
    Map result = await Client.instance.groupManager
        .callNativeMethod(ChatMethodKeys.updateDescription, req);
    EMError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}