Add support for blocked chat events.

This commit is contained in:
Michelle Tang
2025-03-12 12:18:04 -04:00
committed by Greyson Parrelli
parent 8101fcbd8d
commit f61109391a
11 changed files with 177 additions and 28 deletions

View File

@@ -78,13 +78,11 @@ public class FromTextView extends SimpleEmojiTextView {
setText(builder);
if (recipient.isBlocked()) setCompoundDrawablesRelativeWithIntrinsicBounds(getBlocked(), null, null, null);
else if (RemoteConfig.getInlinePinnedChats() && isPinned) setCompoundDrawablesRelativeWithIntrinsicBounds(getPinned(), null, null, null);
else setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);
}
private Drawable getBlocked() {
return getDrawable(R.drawable.symbol_block_16, R.color.signal_icon_tint_secondary);
if (RemoteConfig.getInlinePinnedChats() && isPinned) {
setCompoundDrawablesRelativeWithIntrinsicBounds(getPinned(), null, null, null);
} else {
setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);
}
}
private Drawable getMuted() {