Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing emum lskCustomEmojiKeys caused tdata loading fail #71

Open
qwqdanchun opened this issue Sep 19, 2022 · 1 comment
Open

Missing emum lskCustomEmojiKeys caused tdata loading fail #71

qwqdanchun opened this issue Sep 19, 2022 · 1 comment

Comments

@qwqdanchun
Copy link

Telegram add a value named lskCustomEmojiKeys in (telegramdesktop/tdesktop@ddd5021)

so opentele can not load tdata when find this key

it will raise an exception here

raise TDataReadMapDataFailed(

@thedemons
Copy link
Owner

thedemons commented Sep 19, 2022

Hi, thanks for the detailed research into the issue!

Unfortunately, I don't have the time right now to take a look at the problem. Would you mind making a pull request?

The map data isn't really that important so I think just adding lskCustomEmojiKeys to the enum and these lines should fix the issue:

installedCustomEmojiKey = 0
recentCustomEmojiKey = 0
archivedCustomEmojiKey = 0
elif keyType == lskType.lskCustomEmojiKeys:
    installedCustomEmojiKey = map.stream.readUInt64()
    recentCustomEmojiKey = map.stream.readUInt64()
    archivedCustomEmojiKey = map.stream.readUInt64()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants