decryptConversation method

  1. @override
Future<Conversation?> decryptConversation(
  1. Envelope envelope
)

This decrypts a Conversation from an envelope.

This decryption happens automatically when you listConversations. But this method exists to enable out-of-band receipt of messages that can then be decrypted (e.g. when receiving a push notification).

It returns null when the conversation could not be decrypted.

Implementation

@override
Future<Conversation?> decryptConversation(
  xmtp.Envelope envelope,
) =>
    _conversations.decryptConversation(envelope);