getMediaMessages static method

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

Retrieves media messages for a specific JID.

This method fetches media messages (e.g., images, videos) for the specified JID.

Params:

  • jid : The JID to fetch media messages for.

Returns:

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

Usage example:

String jid = "user_jid";
Mirrorfly.getMediaMessages(jid: jid).then((mediaMessages) {
  // Handle the media messages
  print("Media messages: $mediaMessages");
});

Implementation

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