mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user