-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Conversation
gmsecrieru
commented
Sep 11, 2015
- 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
Conflicts: i18n/en.i18n.json
@@ -48,6 +48,8 @@ openRoom = (type, name) -> | |||
$('.message-form .input-message').focus() | |||
, 100 | |||
|
|||
# update user's room subscription | |||
Meteor.call 'openRoom', room._id |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 😢