getRecentChatOf static method
This method fetches the details of the most recent chat for a user or group identified by jid
.
Parameters:
jid
- The JID (Jabber ID) of the user or group whose most recent chat details are to be retrieved.
Returns: A Future<String> that completes with the most recent chat details as a JSON string.
Example usage:
String recentChatDetails = await Mirrorfly.getRecentChatOf(jid: "user_or_group_jid");
print("Recent chat details: $recentChatDetails");
Implementation
static Future<String> getRecentChatOf({required String jid}) {
return FlyChatFlutterPlatform.instance.getRecentChatOf(jid);
}