mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
recent_topics: Move from overlay to a narrow-like view.
Recent Topics is no longer an overlay now, but note that it is also not a typical messages narrow. It can reside between an overlay and a Filter in the sense that it is dispalyed as a typical Filter narrow but has properties of an Overlay. Compose box is not visible in this view as it will be confusing to many users and hence compose shortcuts have also been disabled. Keyboard shortcuts that apply on messages have also been disabled. The remaining shortcuts that apply to a narrow are still accessible here.
This commit is contained in:
@@ -85,6 +85,10 @@ exports.update_top_of_narrow_notices = function (msg_list) {
|
||||
|
||||
if (msg_list.data.fetch_status.has_found_oldest() && current_msg_list !== home_msg_list) {
|
||||
const filter = narrow_state.filter();
|
||||
if (filter === undefined && recent_topics.is_visible()) {
|
||||
// user moved away from the narrow / filter to recent topics.
|
||||
return;
|
||||
}
|
||||
// Potentially display the notice that lets users know
|
||||
// that not all messages were searched. One could
|
||||
// imagine including `filter.is_search()` in these
|
||||
|
||||
Reference in New Issue
Block a user