latest method

Future<Message?> latest({
  1. required String target,
})

Implementation

Future<Message?> latest({required String target}) async {
  final threadHash = await PUSH_CHAT.conversationHash(
    conversationId: target,
    accountAddress: _account,
  );
  if (threadHash == null) {
    return null;
  }

  return PUSH_CHAT.latest(
    threadhash: threadHash,
    accountAddress: _account,
    pgpPrivateKey: _decryptedPgpPvtKey,
    toDecrypt: _hasSigner,
  );
}