getJid method
This method is used to get the JID of the user from the username.
Implementation
@override
Future<String> getJid(String username) async {
//getuserjid
String? userJID;
try {
userJID = await mirrorFlyMethodChannel
.invokeMethod<String?>('get_jid', {"username": username});
LogMessage.d("User JID Result ", " $userJID");
return userJID ?? '';
} on PlatformException catch (e) {
LogMessage.d("Flutter Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Flutter Exception ", " $error");
rethrow;
}
}