mirror of https://github.com/zulip/zulip.git
d145aba3a5
Earlier, the Shift + M shortcut only functioned in messages to mute/unmute topics in the messages section. This commit enables the Shift + M shortcut to work in recent conversations and the inbox. It achieves this by utilizing the existing function toggle_topic_visibility_policy in user_topics_ui. The focused row message of the recent_view_ui is passed to mute/unmute the selected topic in the recent_view_ui, and the same process is applied to the inbox_ui but the logic of muting/unmuting the topic is kept in inbox_ui which uses function toggle_topic_visibility_policy in user_topics_ui. The function toggle_topic_visibility_policy is called in both cases based on specific conditions to prevent the shortcut from affecting other parts of the page, thus avoiding errors. Fixes #27741. |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
server | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |