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

Catch internal salt responses in mtproto #272

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

er-azh
Copy link
Contributor

@er-azh er-azh commented Oct 7, 2024

Description:

I tried to fix salt_request_msg_id to ensure that salt responses are caught internally and don't reach the Sender.

My changes:

  • salt_request_msg_id is now an Option<MsgId> instead of Option<i64> to match other types.
  • It is assigned the message ID of the new salt request when requesting additional salts.
  • A redundant check is removed.
  • It gets reset to None upon a reset.

@Lonami Lonami merged commit 023c30f into Lonami:master Oct 7, 2024
1 check passed
@Lonami
Copy link
Owner

Lonami commented Oct 7, 2024

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants