getConversation method
Implementation
Future<V2TimValueCallback<V2TimConversation>> getConversation({
required String conversationID,
}) async {
try {
var res = await wrappedPromiseToFuture(
timeweb!.getConversationProfile(conversationID));
return CommonUtils.returnSuccess<V2TimConversation>(
await GetConversationList.formateConversationListItem(
jsToMap(jsToMap(res.data)['conversation'])));
} catch (err) {
return CommonUtils.returnErrorForValueCb<V2TimConversation>(err);
}
}