|
|
|
@ -72,18 +72,7 @@ class ProfilePictureView : RelativeLayout {
|
|
|
|
|
return recipient.isOpenGroupRecipient &&
|
|
|
|
|
DatabaseFactory.getGroupDatabase(context).hasAvatar(recipient.address.toString())
|
|
|
|
|
}
|
|
|
|
|
if (recipient.isGroupRecipient) {
|
|
|
|
|
if ("Session Public Chat" == recipient.name) {
|
|
|
|
|
publicKey = ""
|
|
|
|
|
displayName = ""
|
|
|
|
|
additionalPublicKey = null
|
|
|
|
|
isRSSFeed = true
|
|
|
|
|
} else if (isOpenGroupWithAvatar(recipient)) {
|
|
|
|
|
publicKey = recipient.address.toString()
|
|
|
|
|
displayName = getUserDisplayName(publicKey)
|
|
|
|
|
additionalPublicKey = null
|
|
|
|
|
isRSSFeed = false
|
|
|
|
|
} else {
|
|
|
|
|
if (recipient.isGroupRecipient && !isOpenGroupWithAvatar(recipient)) {
|
|
|
|
|
val users = MentionsManager.shared.userPublicKeyCache[threadID]?.toMutableList() ?: mutableListOf()
|
|
|
|
|
users.remove(TextSecurePreferences.getLocalNumber(context))
|
|
|
|
|
val masterPublicKey = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
|
|
|
|
@ -101,8 +90,9 @@ class ProfilePictureView : RelativeLayout {
|
|
|
|
|
val apk = randomUsers.getOrNull(1) ?: ""
|
|
|
|
|
additionalPublicKey = apk
|
|
|
|
|
additionalDisplayName = getUserDisplayName(apk)
|
|
|
|
|
isRSSFeed = recipient.name == "Loki News" || recipient.name == "Session Updates"
|
|
|
|
|
}
|
|
|
|
|
isRSSFeed = recipient.name == "Loki News" ||
|
|
|
|
|
recipient.name == "Session Updates" ||
|
|
|
|
|
recipient.name == "Session Public Chat"
|
|
|
|
|
} else {
|
|
|
|
|
publicKey = recipient.address.toString()
|
|
|
|
|
displayName = getUserDisplayName(publicKey)
|
|
|
|
|