getConversation method
Implementation
@override
Future<V2TimConversation?> getConversation({
required String conversationID,
}) async {
final res = await TencentImSDKPlugin.v2TIMManager
.getConversationManager()
.getConversation(conversationID: conversationID);
if (res.code == 0) {
return res.data;
} else {
_coreService.callOnCallback(TIMCallback(
type: TIMCallbackType.API_ERROR,
errorMsg: res.desc,
errorCode: res.code));
}
return null;
}