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

Presence map: normalise enter/update actions to present in #put #152

Merged
merged 1 commit into from
Oct 21, 2015

Conversation

SimonWoolf
Copy link
Member

ITSM should be the presence map's responsibility to normalise its actions - neater than juggling different broadcast and map-member presence messages in #setPresence

Fixes presence tests broken by 9c4f8d7

@@ -259,6 +258,10 @@ var RealtimePresence = (function() {
};

PresenceMap.prototype.put = function(item) {
if(Utils.arrIn([presenceAction.ENTER, presenceAction.UPDATE], item.action)) {
Copy link
Member

Choose a reason for hiding this comment

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

This might look elegant but it's hopelessly inefficient compared to just doing (x==a || x==b).

Neater than juggling different broadcast and map-member presence messages
in #setPresence

Fixes presence test failures broken by 9c4f8d7
@paddybyers
Copy link
Member

Thanks

@mattheworiordan mattheworiordan deleted the presence-event-fix branch November 20, 2015 18:40
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