changeGroupDescription method

Future<EMGroup> changeGroupDescription(
  1. String groupId,
  2. String desc
)

更新群描述

Implementation

Future<EMGroup> changeGroupDescription(
  String groupId,
  String desc,
) async {
  Map req = {'desc': desc, 'groupId': groupId};
  Map result =
      await _channel.invokeMethod(EMSDKMethod.updateDescription, req);
  EMError.hasErrorFromResult(result);
  return EMGroup.fromJson(result[EMSDKMethod.updateDescription]);
}