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 authored Jan 3, 2025
1 parent ce85231 commit f9962fb
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 @@ -1535,6 +1535,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 @@ -1439,6 +1439,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 f9962fb

Please sign in to comment.