mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 06:14:10 +01:00
highlight quotes from oneself
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
1bd2b12713
commit
3f7d9ee76f
@ -242,7 +242,12 @@ class MagicIncomingTextMessageViewHolder(incomingView: View) : MessageHolders
|
|||||||
|
|
||||||
quotedUserName?.setTextColor(context!!.resources.getColor(R.color.textColorMaxContrast))
|
quotedUserName?.setTextColor(context!!.resources.getColor(R.color.textColorMaxContrast))
|
||||||
|
|
||||||
quoteColoredView?.setBackgroundResource(R.color.textColorMaxContrast)
|
if(parentChatMessage.actorId?.equals(message.activeUser.userId) == true) {
|
||||||
|
quoteColoredView?.setBackgroundResource(R.color.colorPrimary)
|
||||||
|
} else {
|
||||||
|
quoteColoredView?.setBackgroundResource(R.color.textColorMaxContrast)
|
||||||
|
}
|
||||||
|
|
||||||
quotedChatMessageView?.visibility = View.VISIBLE
|
quotedChatMessageView?.visibility = View.VISIBLE
|
||||||
} else {
|
} else {
|
||||||
quotedChatMessageView?.visibility = View.GONE
|
quotedChatMessageView?.visibility = View.GONE
|
||||||
|
Loading…
Reference in New Issue
Block a user