Fix room search updating unread count (Vue left-menu)
Fix room search updating unread count (Vue left-menu)
Use roomId
's in search results that point back to the roomMap
. So whenever we update information for a room via the updateRoom
action, the new information flows
Fix https://gitlab.com/gitlab-org/gitter/webapp/issues/2189
Testing strategy
- Add the feature toggle,
node ./scripts/utils/feature-toggle.js --name vue-left-menu --description "Left menu using Vue (alpha)"
- Enable the feature toggle
- Have a room with some unread messages and notice the green unread badge
- Search for the room with unread messages
- Click on the room
- Notice the messages get marked as read and the room in left-menu search results updates to no unreads
Edited by Eric Eastwood