Fix "Thread message feed not showing when user isn't room member"
Closes #2343 (closed)
When the user wasn't a member of a room the initial roomMap
in the state missed the current room because the Map was only populated by the restful.serializeTroupesForUser(userId)
.
The displayedRoom
getter is used in our Vue code to generate permalinks for messages.
Note: Hiding the thread message input box is going to be implemented in https://gitlab.com/gitlab-org/gitter/webapp/issues/2206
before | after |
---|---|
Testing strategy:
- Visit a room with threaded messages that you are not a member of
- Open a message thread
- Observe thread messages being present