getGroupJid method

  1. @override
Future<String?> getGroupJid(
  1. String groupId
)
override

This method is used to get the group JID from the group ID.

Implementation

@override
Future<String?> getGroupJid(String groupId) async {
  String? response;
  try {
    response = await mirrorFlyMethodChannel
        .invokeMethod<String>('getGroupJid', {"groupId": groupId});
    LogMessage.d("getGroupJid Result ", " $response");
    return response;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}