feat: can disable premium star in chat
This commit is contained in:
parent
825f653abb
commit
9fff7f9eda
@ -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;
|
||||
|
@ -196,7 +196,7 @@ object NaConfig {
|
||||
addConfig(
|
||||
"ShowPremiumStarInChat",
|
||||
ConfigItem.configTypeBool,
|
||||
false
|
||||
true
|
||||
)
|
||||
val showPremiumAvatarAnimation =
|
||||
addConfig(
|
||||
|
Loading…
Reference in New Issue
Block a user