Skip to content

UserPresence.start() is called twice#182

Closed
rockhouse wants to merge 1 commit intoRocketChat:masterfrom
rockhouse:double_UserPresenceStart
Closed

UserPresence.start() is called twice#182
rockhouse wants to merge 1 commit intoRocketChat:masterfrom
rockhouse:double_UserPresenceStart

Conversation

@rockhouse
Copy link
Contributor

The method UserPresence.start() is called twice within Meteor.startup once in presence.coffee and once in startup.coffee nothing big but I guess we need just one call right?

once in presence.coffee and once in startup.coffee nothing big but I
guess we need just one call right?
@sampaiodiego
Copy link
Member

Actually, since one code runs on server and another on client, it's not called twice.

I'm not sure if to call UserPresence.start() on server is necessary, I'll check that. But on the client, it's needed to notifiy server when window loses focus (user is away)

@rockhouse
Copy link
Contributor Author

You are right, my bad, indeed both are needed!

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

Comments