getUserProfile method
Implementation
@override
Future<dynamic> getUserProfile(String jid, [bool fromserver = false, bool saveasfriend = false]) async {
//getProfile
dynamic profileResponse;
try {
profileResponse = await mirrorFlyMethodChannel.invokeMethod('getUserProfile', {"jid": jid, "server": fromserver, "saveasfriend": saveasfriend});
LogMessage.d("getUserProfile Result ", " $profileResponse");
//insertDefaultStatusToUser();
return profileResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}