mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Fix bug displaying user ID when quoting own message
This commit is contained in:
parent
e124d442ef
commit
0f04929bf9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user