From 0f04929bf9ac37f73ce90998d7b69a1aa6aad8db Mon Sep 17 00:00:00 2001 From: aaronkerckhoff Date: Sat, 30 Sep 2023 01:32:39 +0200 Subject: [PATCH] Fix bug displaying user ID when quoting own message --- .../securesms/conversation/v2/messages/QuoteView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/QuoteView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/QuoteView.kt index 4e91400430..06470f5b2a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/QuoteView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/QuoteView.kt @@ -72,7 +72,7 @@ class QuoteView @JvmOverloads constructor(context: Context, attrs: AttributeSet? // Author val author = contactDb.getContactWithSessionID(authorPublicKey) val localNumber = TextSecurePreferences.getLocalNumber(context) - val quoteIsLocalUser = localNumber != null && localNumber == author?.sessionID + val quoteIsLocalUser = localNumber != null && author == null val authorDisplayName = if (quoteIsLocalUser) context.getString(R.string.QuoteView_you)