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

Track channel state to allow removing channels user is not in #2058

Merged
merged 1 commit into from
Feb 18, 2018

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Feb 13, 2018

Some discussion in #1959.

We recently changed channel part to await server response, but if you were kicked from a channel, PART would never come and the channel would be left dangling.

This tracks channel state (parted or joined) to allow instantly removing channels we're already parted in.

cc @RockyTV for test

@xPaw xPaw added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Feb 13, 2018
@xPaw xPaw added this to the 2.7.1 milestone Feb 13, 2018
@Xinayder
Copy link
Contributor

Works as expected. When, for some reason, you can't join a channel and you set Lounge to auto join it on connect, you can close the tab without it trying to send a PART message. Same thing for when you are kicked from the channel.

@xPaw xPaw requested a review from a team February 14, 2018 10:12
@@ -15,6 +15,11 @@ Chan.Type = {
SPECIAL: "special",
};

Chan.State = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be expanded for queries (#1700) later on to state if user is online or not.

@astorije astorije merged commit c8418a6 into master Feb 18, 2018
@astorije astorije deleted the xpaw/channel-state branch February 18, 2018 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants