fetchMessages method
Fetches all existing messages for the conversation at path, ordered
oldest first.
Implementation
@override
Future<List<ChatBackendMessage>> fetchMessages(String path) async {
final snapshot = await _collectionFor(path).orderBy("timestamp").get();
return snapshot.docs.map((doc) {
return ChatBackendMessage(
id: doc.id,
data: _normalize(doc.data()! as Map<String, dynamic>),
);
}).toList();
}