feat: can disable premium star in chat

This commit is contained in:
xtaodada 2022-10-11 21:12:22 +08:00
parent 825f653abb
commit 9fff7f9eda
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 1 deletions

View File

@ -11710,6 +11710,9 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
}
private Object getAuthorStatus() {
if (!NaConfig.INSTANCE.getShowPremiumStarInChat().Bool()) {
return null;
}
if (currentUser != null) {
if (currentUser.emoji_status instanceof TLRPC.TL_emojiStatusUntil && ((TLRPC.TL_emojiStatusUntil) currentUser.emoji_status).until > (int) (System.currentTimeMillis() / 1000)) {
return ((TLRPC.TL_emojiStatusUntil) currentUser.emoji_status).document_id;

View File

@ -196,7 +196,7 @@ object NaConfig {
addConfig(
"ShowPremiumStarInChat",
ConfigItem.configTypeBool,
false
true
)
val showPremiumAvatarAnimation =
addConfig(