mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
We remove the "GROUP PMs" section that used
to be in the lower right sidebar.
Most of this is straightforward code removal.
A couple quick notes:
- The message fetching code now just
calls `huddle_data.process_loaded_messages`,
which we still need for search suggestions.
We removed `activity.process_loaded_messages`.
- The `huddle_data.process_loaded_messages`
function no longer needs to return `need_resize`.
- In `resize.js` we now just calculate
`res.buddy_list_wrapper_max_height` directly
from `usable_height`.
20 lines
522 B
JavaScript
20 lines
522 B
JavaScript
const list_selectors = ["#stream_filters", "#global_filters", "#user_presences"];
|
|
|
|
exports.inside_list = function (e) {
|
|
const $target = $(e.target);
|
|
const in_list = $target.closest(list_selectors.join(", ")).length > 0;
|
|
return in_list;
|
|
};
|
|
|
|
exports.go_down = function (e) {
|
|
const $target = $(e.target);
|
|
$target.closest("li").next().find("a").focus();
|
|
};
|
|
|
|
exports.go_up = function (e) {
|
|
const $target = $(e.target);
|
|
$target.closest("li").prev().find("a").focus();
|
|
};
|
|
|
|
window.list_util = exports;
|