mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
refactor: simplify comparison
This commit is contained in:
parent
e595cfb504
commit
ef157f9991
@ -72,7 +72,7 @@ class QuoteView @JvmOverloads constructor(context: Context, attrs: AttributeSet?
|
|||||||
// Author
|
// Author
|
||||||
val author = contactDb.getContactWithSessionID(authorPublicKey)
|
val author = contactDb.getContactWithSessionID(authorPublicKey)
|
||||||
val localNumber = TextSecurePreferences.getLocalNumber(context)
|
val localNumber = TextSecurePreferences.getLocalNumber(context)
|
||||||
val quoteIsLocalUser = localNumber != null && localNumber != null && authorPublicKey == localNumber
|
val quoteIsLocalUser = localNumber != null && authorPublicKey == localNumber
|
||||||
|
|
||||||
val authorDisplayName =
|
val authorDisplayName =
|
||||||
if (quoteIsLocalUser) context.getString(R.string.QuoteView_you)
|
if (quoteIsLocalUser) context.getString(R.string.QuoteView_you)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user