From 927bcce764ff867f30cab02996153ba097284745 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Mon, 22 Jun 2020 09:02:01 +1000 Subject: [PATCH] Remove redundant code --- .../thoughtcrime/securesms/loki/utilities/MentionUtilities.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt b/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt index e3d8481064..af5b80d868 100644 --- a/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt +++ b/src/org/thoughtcrime/securesms/loki/utilities/MentionUtilities.kt @@ -52,8 +52,6 @@ object MentionUtilities { } } val result = SpannableString(text) - val userLinkedDeviceHexEncodedPublicKeys = DatabaseFactory.getLokiAPIDatabase(context).getDeviceLinks(userHexEncodedPublicKey).flatMap { listOf( it.masterHexEncodedPublicKey, it.slaveHexEncodedPublicKey ) }.toMutableSet() - userLinkedDeviceHexEncodedPublicKeys.add(userHexEncodedPublicKey) for (mention in mentions) { 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)