fix: improve image caching reliability by clearing cache on startup and forcing widget rebuilds on tab switches

This commit is contained in:
pradeepkumar
2026-04-10 17:06:49 +05:30
parent 9c79c05c52
commit fe521d64f5
3 changed files with 18 additions and 3 deletions

View File

@@ -135,9 +135,9 @@ class Conversation {
createdAt: json['createdAt'] as String,
updatedAt: json['updatedAt'] as String,
otherParty:
OtherParty.fromJson(json['otherParty'] as Map<String, dynamic>),
OtherParty.fromJson(MessageSender._safeMap(json['otherParty'])),
messages: (json['messages'] as List<dynamic>?)
?.map((e) => ChatMessage.fromJson(e as Map<String, dynamic>))
?.map((e) => ChatMessage.fromJson(MessageSender._safeMap(e)))
.toList(),
);
}