Implement mute UI

This commit is contained in:
Niels Andriesse
2020-01-16 11:48:49 +11:00
parent 7519400579
commit eda21064a4
3 changed files with 18 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ class ConversationView : LinearLayout {
val senderDisplayName = if (thread.recipient.isLocalNumber) context.getString(R.string.note_to_self) else thread.recipient.name
displayNameTextView.text = senderDisplayName
timestampTextView.text = DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), thread.date)
muteIndicatorImageView.visibility = if (thread.recipient.isMuted) VISIBLE else GONE
val rawSnippet = thread.getDisplayBody(context)
val snippet = highlightMentions(rawSnippet, thread.threadId, context)
snippetTextView.text = snippet