From 605e3c21bc1205553ddc08795249c02369ba5d8e Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 2 Jan 2025 20:35:30 +0800 Subject: [PATCH] chore: update fetch sticker owner logic Co-authored-by: dic1911 --- .../main/java/org/telegram/ui/Components/EmojiPacksAlert.java | 3 +++ .../main/java/org/telegram/ui/Components/StickersAlert.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/EmojiPacksAlert.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/EmojiPacksAlert.java index f9dcfea246..f00c00b930 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/EmojiPacksAlert.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/EmojiPacksAlert.java @@ -1540,6 +1540,9 @@ protected void onSend(androidx.collection.LongSparseArray dids, in } else if (id == menu_user_profile) { // Na: open sticker's admin user profile or copy admin userId long userId = stickerSet.set.id >> 32; + if ((stickerSet.set.id >> 16 & 0xff) == 0x3f) { + userId |= 0x80000000L; + } if ((stickerSet.set.id >> 24 & 0xff) != 0) { userId += 0x100000000L; } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/StickersAlert.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/StickersAlert.java index 2116e14b9d..7012fb3ba9 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/StickersAlert.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/StickersAlert.java @@ -1486,6 +1486,9 @@ protected void onSend(LongSparseArray dids, int count, TLRPC.TL_fo } else if (id == menu_user_profile) { // Na: open sticker's admin user profile or copy admin userId long userId = stickerSet.set.id >> 32; + if ((stickerSet.set.id >> 16 & 0xff) == 0x3f) { + userId |= 0x80000000L; + } if ((stickerSet.set.id >> 24 & 0xff) != 0) { userId += 0x100000000L; }