decryptMessage method
This decrypts and decodes the message
belonging to conversation
.
This decryption/decoding happens automatically when you listMessages
.
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 message could not be decoded.
Implementation
@override
Future<DecodedMessage?> decryptMessage(
Conversation conversation,
xmtp.Message message,
) =>
_conversations.decryptMessage(conversation, message);