Skip to content

Commit

Permalink
chore: update fetch sticker owner logic
Browse files Browse the repository at this point in the history
Co-authored-by: dic1911 <[email protected]>
  • Loading branch information
omg-xtao and dic1911 committed Jan 2, 2025
1 parent d5b4148 commit 605e3c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,9 @@ protected void onSend(androidx.collection.LongSparseArray<TLRPC.Dialog> 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,9 @@ protected void onSend(LongSparseArray<TLRPC.Dialog> 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;
}
Expand Down

0 comments on commit 605e3c2

Please sign in to comment.