loadConversationsSnapshot method

Future<List<Nip17Conversation>> loadConversationsSnapshot()

Loads all conversations for the logged-in user using cache only.

Implementation

Future<List<Nip17Conversation>> loadConversationsSnapshot() async {
  final myPubKey = _requireLoggedPubKey();
  final wrappedEvents = await _loadWrappedEventsFromCache(myPubKey: myPubKey);
  final messages = await _parseMessages(
    wrappedEvents: wrappedEvents,
    myPubKey: myPubKey,
    cacheOnly: true,
  );
  return _buildConversations(messages);
}