getOneConversation method
查询会话,如果会话不存在会自动生成一个
sourceID
如果是单聊会话传userID,如果是群聊会话传GroupID
sessionType
参考ConversationType
Implementation
Future<ConversationInfo> getOneConversation({
required String sourceID,
required int sessionType,
String? operationID,
}) =>
_channel
.invokeMethod(
'getOneConversation',
_buildParam({
"sourceID": sourceID,
"sessionType": sessionType,
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) =>
Utils.toObj(value, (map) => ConversationInfo.fromJson(map)));