ui: Move update_message_lists related functions to other related modules.

This commit moves mainly two functions from `ui.js` to `message_live_update`,
`update_message_in_all_views` and `update_starred_view`. This is done in favor of
eliminating `ui.js` and also these functions are more closely related to
`message_live_update` module than to `ui` module.

We also move `show_message_failed` and `show_failed_message_success` to `echo.js`
for cleaner seperation of responsibilities.
This commit is contained in:
Lalit
2023-04-25 09:06:10 +05:30
committed by Tim Abbott
parent aad2f7c7c5
commit 7e52509ee7
7 changed files with 65 additions and 78 deletions

View File

@@ -15,8 +15,8 @@ const notifications = mock_esm("../src/notifications");
let disparities = [];
mock_esm("../src/ui", {
show_failed_message_success() {},
mock_esm("../src/message_live_update", {
update_message_in_all_views() {},
});
mock_esm("../src/sent_messages", {