Merge e595cfb504
into 9d02eb33c7
This commit is contained in:
commit
0555e5246b
|
@ -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 == author?.sessionID
|
val quoteIsLocalUser = localNumber != null && 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…
Reference in New Issue