getConversation method
Future<V2TimValueCallback<V2TimConversation> >
getConversation({
- required String conversationID,
override
获取指定会话
参数
conversationID 会话唯一 ID,如果是 C2C 单聊,组成方式为 c2c_userID,如果是群聊,组成方式为 group_groupID
Implementation
@override
Future<V2TimValueCallback<V2TimConversation>> getConversation({
required String conversationID,
}) async {
var formatedConversationID = conversationID.replaceAll("c2c_", "C2C");
formatedConversationID =
formatedConversationID.replaceAll("group_", "GROUP");
return await _v2TIMConversationManager.getConversation(
conversationID: formatedConversationID);
}