Skip to content

Commit

Permalink
remove premoji from reactions also
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitasius committed Feb 4, 2023
1 parent 8f7767c commit 6d512f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
}

boolean showSettings = baseFragment != null && type != TYPE_TOPIC_ICON;
emojiTabs = new EmojiTabsStrip(context, null, false, true, type, showSettings ? () -> {
emojiTabs = new EmojiTabsStrip(context, null, false, !(MessagesController.getGlobalTelegraherSettings().getBoolean("GraheriumDisablePremiumEmojis", false)), type, showSettings ? () -> {
onSettings();
baseFragment.presentFragment(new StickersActivity(MediaDataController.TYPE_EMOJIPACKS, frozenEmojiPacks));
if (dismiss != null) {
Expand Down Expand Up @@ -2522,6 +2522,7 @@ private void updateRows(boolean updateEmojipacks, boolean diff) {
}
ArrayList<TLRPC.TL_messages_stickerSet> installedEmojipacks = frozenEmojiPacks;
ArrayList<TLRPC.StickerSetCovered> featuredEmojiPacks = new ArrayList<>(mediaDataController.getFeaturedEmojiSets());
if ((MessagesController.getGlobalTelegraherSettings().getBoolean("GraheriumDisablePremiumEmojis", false))) featuredEmojiPacks.clear();

ArrayList<Integer> prevRowHashCodes = new ArrayList<>(rowHashCodes);
totalCount = 0;
Expand Down

0 comments on commit 6d512f3

Please sign in to comment.