diff --git a/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt b/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt index 4bdff6dc2c..e3d8481064 100644 --- a/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt +++ b/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt @@ -55,7 +55,6 @@ object MentionUtilities { val userLinkedDeviceHexEncodedPublicKeys = DatabaseFactory.getLokiAPIDatabase(context).getDeviceLinks(userHexEncodedPublicKey).flatMap { listOf( it.masterHexEncodedPublicKey, it.slaveHexEncodedPublicKey ) }.toMutableSet() userLinkedDeviceHexEncodedPublicKeys.add(userHexEncodedPublicKey) for (mention in mentions) { - if (!userLinkedDeviceHexEncodedPublicKeys.contains(mention.second)) { continue } result.setSpan(ForegroundColorSpan(context.resources.getColorWithID(R.color.accent, context.theme)), mention.first.lower, mention.first.upper, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) result.setSpan(StyleSpan(Typeface.BOLD), mention.first.lower, mention.first.upper, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) }