Skip to content
Snippets Groups Projects
Commit 060a78f0 authored by Taras's avatar Taras
Browse files

Send failed red

parent 6d0ed072
No related branches found
No related tags found
No related merge requests found
...@@ -137,10 +137,10 @@ class PostLayout( ...@@ -137,10 +137,10 @@ class PostLayout(
private fun setMentionBorder(content: PostContent) { private fun setMentionBorder(content: PostContent) {
val hasMention = when (content) { val hasMention = when (content) {
is MediaContent -> content.caption?.let { is MediaContent -> content.caption?.let {
MarkdownParser.hasCurrentUserMention(it.toString()) MarkdownParser.hasCurrentUserMention(it)
} ?: false } ?: false
is TextContent -> MarkdownParser.hasCurrentUserMention(content.message.toString()) is TextContent -> MarkdownParser.hasCurrentUserMention(content.message)
is PollContent -> false is PollContent -> false
} }
if (hasMention) binding.lCard.setBackgroundResource(R.drawable.bg_mention_highlight) if (hasMention) binding.lCard.setBackgroundResource(R.drawable.bg_mention_highlight)
......
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp" android:width="24dp"
android:height="24dp" android:height="24dp"
android:tint="@color/gray" android:tint="@color/red"
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment