decrypt method

Future<List<Message>> decrypt({
  1. required List<Message> messagePayloads,
})

Implementation

Future<List<Message>> decrypt(
    {required List<Message> messagePayloads}) async {
  if (!_hasSigner) {
    throw Exception(PushAPI.ensureSignerMessage());
  }
  return PUSH_CHAT.decryptConversation(
    messages: messagePayloads,
    connectedUser: await _userAPI.info(),
    pgpPrivateKey: _decryptedPgpPvtKey!,
  );
}