[x] I agree to follow the Code of Conduct that this project adheres to.
Description of Change
At some point, Rocketchat started to remove the DOM elements for channels from the sidebar which are not in the current viewport (i.e. scrolled out of view). This means that the current approach of counting .rcx-badge and .rcx-sidebar-item--highlighted elements does not work reliably, since they might not exist.
The recipe now uses the information in the title bar, which is updated by Rocketchat itself.
Pre-flight Checklist
Please ensure you've completed all of the following.
Description of Change
At some point, Rocketchat started to remove the DOM elements for channels from the sidebar which are not in the current viewport (i.e. scrolled out of view). This means that the current approach of counting
.rcx-badge
and.rcx-sidebar-item--highlighted
elements does not work reliably, since they might not exist.The recipe now uses the information in the title bar, which is updated by Rocketchat itself.