pinGroupMessage method

  1. @override
Future<V2TimCallback> pinGroupMessage({
  1. required String msgID,
  2. required String groupID,
  3. required bool isPinned,
})
override

Implementation

@override
Future<V2TimCallback> pinGroupMessage({
  required String msgID,
  required String groupID,
  required bool isPinned,
}) async {
  Map<String, dynamic> param = {
    "msgID": msgID,
    "groupID": groupID,
    "isPinned": isPinned,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "pinGroupMessage",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("pinGroupMessage", param, resp.toLogString());
  return resp;
}