Skip to content

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

Merged
marceloschmidt merged 4 commits intoRocketChat:masterfrom
gmsecrieru:master
Sep 11, 2015
Merged

Adding support for private groups reopening and fixing room subscription state#765
marceloschmidt merged 4 commits intoRocketChat:masterfrom
gmsecrieru:master

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
, 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 😢

@marceloschmidt marceloschmidt merged commit 8650837 into RocketChat:master Sep 11, 2015
julio-rocketchat added a commit that referenced this pull request May 16, 2025
* Sanitize LinkSpan 'href' attribute

* Change the fix and add it to a new function with tests

* fix LinkSpan

* Add more tests

* Fix typos

* Change test description
julio-rocketchat added a commit that referenced this pull request May 16, 2025
* Sanitize LinkSpan 'href' attribute

* Change the fix and add it to a new function with tests

* fix LinkSpan

* Add more tests

* Fix typos

* Change test description
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

Comments