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

Fix(#162): DisconnectOnIdle doesn't restore presence #319

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Sominemo
Copy link
Contributor

@Sominemo Sominemo commented May 11, 2024

This pull request fixes a problem which caused DisconnectOnIdle option to never re-connect RPC after disconnecting due to some refactoring that happened in the extension shortly after I implemented the option.

Instead of calling .disable(), I modified checkCanSend to disallow presence when idling if the option is enabled. A subtle improvement to how timer resets after idling was also needed.

Additionally to this, I added some explanations on what idle-related settings do exactly, as they sounded kinda similar and it wasn't clear what they did exactly.

VSCord.mp4

@xhayper xhayper added the enhancement New feature or request label Aug 21, 2024
@xhayper xhayper merged commit babc8f9 into leonardssh:main Aug 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants