highlight quotes from oneself

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-04-18 13:43:35 +02:00
parent 1bd2b12713
commit 3f7d9ee76f
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -242,7 +242,12 @@ class MagicIncomingTextMessageViewHolder(incomingView: View) : MessageHolders
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
} else {
quotedChatMessageView?.visibility = View.GONE