mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
fix message highlighting. Fixes #1077
This commit is contained in:
parent
c439a07566
commit
42432d369d
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ class ChatRecyclerViewAdapter(data: OrderedRealmCollection<ChatMessage>?, autoUp
|
|||
}
|
||||
|
||||
val username = user?.formattedUsername
|
||||
messageWrapper.background = if ((name != null && msg.text?.contains(name) == true) || (username != null && msg.text?.contains(username) == true)) {
|
||||
messageWrapper.background = if ((name != null && msg.text?.contains("@$name") == true) || (username != null && msg.text?.contains(username) == true)) {
|
||||
ContextCompat.getDrawable(context, R.drawable.layout_rounded_bg_brand_700)
|
||||
} else {
|
||||
ContextCompat.getDrawable(context, R.drawable.layout_rounded_bg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue