mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Improve check if author is own user when quoting messages
This commit is contained in:
parent
0f04929bf9
commit
e595cfb504
@ -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 && author == null
|
||||
val quoteIsLocalUser = localNumber != null && localNumber != null && authorPublicKey == localNumber
|
||||
|
||||
val authorDisplayName =
|
||||
if (quoteIsLocalUser) context.getString(R.string.QuoteView_you)
|
||||
|
Loading…
Reference in New Issue
Block a user