getLinkMessages static method

Future<String?> getLinkMessages({
  1. required String jid,
})

Retrieves link messages for a specific JID.

This method fetches link messages (e.g., URLs) for the specified JID.

Params:

  • jid : The JID to fetch link messages for.

Returns:

  • A Future<String?> that completes with the link messages.

Usage example:

String jid = "user_jid";
Mirrorfly.getLinkMessages(jid: jid).then((linkMessages) {
  // Handle the link messages
  print("Link messages: $linkMessages");
});

Implementation

static Future<String?> getLinkMessages({required String jid}) {
  return FlyChatFlutterPlatform.instance.getLinkMessages(jid);
}