latest function
Get the latest chat message
Implementation
Future<Message?> latest({
required String threadhash,
String? accountAddress,
String? pgpPrivateKey,
bool toDecrypt = false,
}) async {
return (await history(
threadhash: threadhash,
accountAddress: accountAddress,
pgpPrivateKey: pgpPrivateKey,
limit: 1,
toDecrypt: toDecrypt,
))
?.first;
}