refreshRelations static method
Implementation
static Future<ChatModel> refreshRelations(ChatModel model) async {
List<ChatMediumModel>? chatMediaHolder;
if (model.chatMedia != null) {
chatMediaHolder = List<ChatMediumModel>.from(
await Future.wait(model.chatMedia!.map((element) async {
return await ChatMediumCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
chatMedia: chatMediaHolder,
);
}