From a9337a389200036027dc4819ee354e429de85267 Mon Sep 17 00:00:00 2001 From: Eugene Lam <47935524+Eugene-Lam@users.noreply.github.com> Date: Thu, 23 Mar 2023 19:02:05 +0800 Subject: [PATCH 1/2] Update .gitmodules --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index c897314f3..002d0309f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,13 +6,13 @@ url=git@github.com:telegramdesktop/libtgvoip url=git@gitlab.com:overtake/Sparkle.git [submodule "submodules/telegram-ios"] path = submodules/telegram-ios -url=git@github.com:overtake/Telegram-iOS.git +url=git@github.com:TelegramMessenger/Telegram-iOS.git [submodule "submodules/rlottie"] path = submodules/rlottie url=git@github.com:overtake/rlottie.git [submodule "submodules/tgcalls"] path = submodules/tgcalls - url = git@github.com:john-preston/tgcalls.git + url = git@github.com:TelegramMessenger/tgcalls.git [submodule "submodules/tg_owt"] path = submodules/tg_owt url = git@github.com:desktop-app/tg_owt.git From 3d667a731cb567b0e00ef919cbb61118078bbb9d Mon Sep 17 00:00:00 2001 From: Eugene <47935524+Eugene-Lam@users.noreply.github.com> Date: Thu, 23 Mar 2023 21:30:59 +0800 Subject: [PATCH 2/2] fix: premium user not showing double stickers amount --- Telegram-Mac/StickersViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram-Mac/StickersViewController.swift b/Telegram-Mac/StickersViewController.swift index 4a55614ba..520bc172c 100644 --- a/Telegram-Mac/StickersViewController.swift +++ b/Telegram-Mac/StickersViewController.swift @@ -446,6 +446,12 @@ private func stickersEntries(view: ItemCollectionsView?, context: AccountContext if !view.orderedItemListsViews[0].items.isEmpty { var files:[TelegramMediaFile] = [] + var maxStickers: Int32 = 20 + if context.isPremium { + maxStickers = 82 + } else { + maxStickers = 20 + } for item in view.orderedItemListsViews[0].items { if let entry = item.contents.get(RecentMediaItem.self) { let file = entry.media @@ -456,7 +462,7 @@ private func stickersEntries(view: ItemCollectionsView?, context: AccountContext } } } - if files.count == 20 { + if files.count == maxStickers { break } }