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

Adding support for private groups reopening and fixing room subscription state #765

Merged
merged 4 commits into from
Sep 11, 2015

Conversation

gmsecrieru
Copy link
Contributor

  • Added a list of Private Groups allowing users to reopen closed Groups (i.e. reproducing behavior from Channels list)
  • Bug fix: When a given room is closed and reopened, the user's room subscription "open" state was not being updated to "true", thus the room was not showing in the SideNav list.

- Adding Private Groups list ("More groups")
- Bug fixed: rocketchat_subscription "open" flag is now updated when user reopens a given room
@@ -48,6 +48,8 @@ openRoom = (type, name) ->
$('.message-form .input-message').focus()
, 100

# update user's room subscription
Meteor.call 'openRoom', room._id
Copy link
Member

Choose a reason for hiding this comment

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

Update subscription every time user enter in a room’s route don't seems to be a good idea.

Copy link
Member

Choose a reason for hiding this comment

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

@rodrigok what about this?

# update user's room subscription
if ChatSubscription.findOne({rid: room._id})?.open is false
    Meteor.call 'openRoom', room._id

Copy link
Member

Choose a reason for hiding this comment

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

@marceloschmidt looks good, but already was merged 😢

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.

3 participants