pinConversation method

  1. @override
Future<V2TimCallback> pinConversation({
  1. required String conversationID,
  2. required bool isPinned,
})
override

会话置顶

Implementation

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