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

Add back JOIN/EXIT events for conferences. #795

Closed
wants to merge 1 commit into from

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Feb 19, 2018

Apparently it's very hard for clients to adapt, so we're keeping the
events for now. They are now actively deprecated and should no longer be
used. The LIST_CHANGED event is the recommended way, but both events will
be emitted.


This change is Reviewable

@iphydf iphydf added this to the v0.2.0 milestone Feb 19, 2018
@@ -2403,6 +2403,22 @@ typedef enum TOX_CONFERENCE_STATE_CHANGE {
*/
TOX_CONFERENCE_STATE_CHANGE_PEER_NAME_CHANGE,

/**
Copy link

@zoff99 zoff99 Feb 19, 2018

Choose a reason for hiding this comment

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

strange naming?

above in group.h it's "chat" old naming:
CHAT_CHANGE_PEER_NAME

in tox.h now its suddenly "conference":
TOX_CONFERENCE_STATE_CHANGE_PEER_NAME_CHANGE

also the enums are renamed and the values shuffled. why? (this is why enums suck, values get assigned in some magical way)

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't change the name in this PR and I'm not going to change it now, because this whole event will go away later. The enum values are shuffled because this is an incompatible change anyway, and it's easier to remove the ones at the end than at the beginning (removing the beginning would be another ABI breaking change).

@dep dep bot added dependent and removed dependent labels Feb 19, 2018
Apparently it's very hard for clients to adapt, so we're keeping the
events for now. They are now actively deprecated and should no longer be
used. The LIST_CHANGED event is the recommended way, but both events will
be emitted.
@iphydf
Copy link
Member Author

iphydf commented Feb 19, 2018

Obsoleted by #799.

@iphydf iphydf closed this Feb 19, 2018
@iphydf iphydf deleted the group-join-exit branch February 19, 2018 17:45
@iphydf iphydf restored the group-join-exit branch February 19, 2018 20:27
@iphydf iphydf deleted the group-join-exit branch February 19, 2018 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants