mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 05:21:22 +02:00
* Introduce a hook to track active room This hook simply keeps a state which tracks the index of the active room in the list of rooms passed through props. This index will be recomputed if the active rooms changes or if the list itself changed. * Use hook in the view model * Write tests * Fix broken tests