getName method
Implementation
String getName() {
if (!Constants.enableContactSync) {
if (jid.checkNull() == SessionManagement.getUserJID()) {
return Constants.you;
}
/*return item.name.toString().checkNull().isEmpty
? item.nickName.toString()
: item.name.toString();*/
return name.checkNull().isEmpty
? (nickName.checkNull().isEmpty
? getMobileNumberFromJid(jid.checkNull())
: nickName.checkNull())
: name.checkNull();
} else {
if (jid.checkNull() == SessionManagement.getUserJID()) {
return Constants.you;
} else if (isDeletedContact()) {
mirrorFlyLog('isDeletedContact', isDeletedContact().toString());
return Constants.deletedUser;
} else if (isUnknownContact() || nickName.checkNull().isEmpty) {
mirrorFlyLog('isUnknownContact', jid.toString());
return getMobileNumberFromJid(jid.checkNull());
} else {
mirrorFlyLog('nickName', nickName.toString());
return nickName.checkNull().isEmpty
? (name.checkNull().isEmpty
? getMobileNumberFromJid(jid.checkNull())
: name.checkNull())
: nickName.checkNull(); //#FLUTTER-1300
}
}
}