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

Send "pinned" as "true" in pins update event #1182

Merged

Conversation

DEVTomatoCake
Copy link
Member

Currently, when pinning a message, as expected a MESSAGE_UPDATE gateway is sent. However, the pinned property is set to false instead of the expected true - unlike when unpinning a message, which sets it to false before sending the event.

This PR fixes the pinned property for the CHANNEL_PINS_UPDATE event and simplifies the unpinning code to be more similar to the pinning one.

@MaddyUnderStars MaddyUnderStars merged commit f7f16db into spacebarchat:master Aug 18, 2024
3 checks passed
@DEVTomatoCake DEVTomatoCake deleted the fix/msg-update-pinned branch August 18, 2024 08:06
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