getNameOfJid static method
Implementation
static Future<String> getNameOfJid(String jid) async {
if (jid == SessionManagement.getUserJID()) {
return getTranslated("you");
}
var profile = await getProfileDetails(jid);
return profile.getName();
}