Created
September 17, 2017 08:17
-
-
Save akbarsha03/801128c5e5e54ac301176ce27afddefe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun getSenderNameForNougat(dialog: QBChatDialog?, message: QBChatMessage) = | |
if (dialog?.isPrivate != false) "" else { | |
val name = message.getProperty(AppConst.QB.QB_MSG_SENDER_NAME)?.let { it }?.toString() | |
?: MemberRealm.getContactInfo(message.senderId)?.name ?: "" | |
name.takeIf { it.isNotEmpty() } ?: "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment