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

Changed callback not needed #994

Closed
wants to merge 1 commit into from
Closed

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Oct 4, 2015

The query is limited to _id only.

I must say that I do not understand this publish function. Maybe some comments should be there?

Doesn't this publish function publish ALL deleted messages ever (with only {_hidden: true} fields, though) for a given channel, every time user subscribes it? Because query findInvisibleByRoomId is not limited in any way?

The query is limited to `_id` only.
@rodrigok
Copy link
Member

rodrigok commented Oct 4, 2015

@mitar this publication is not used anymore

@mitar
Copy link
Contributor Author

mitar commented Oct 4, 2015

Oh, where are then messages published?

@rodrigok
Copy link
Member

rodrigok commented Oct 4, 2015

Messages are loaded in 2 steps:

  1. Load 50 messages from now: Rocket.Chat/server/methods/loadHistory.coffee
  2. Listen for new messages via stream: Rocket.Chat/server/stream/messages.coffee

@geekgonecrazy
Copy link
Contributor

Seems like this PR needs closed and the un-used publication needs removed?

@Sing-Li
Copy link
Member

Sing-Li commented Oct 13, 2015

It is unused by core.

hubot-rocketchat and rest-api's absolutely depend on it ;-)

@geekgonecrazy
Copy link
Contributor

OK then absolutely don't remove! Haha

@geekgonecrazy
Copy link
Contributor

Going to go ahead and close this.

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.

5 participants