left-sidebar: Fix 3-points-menu responsive bug.

In responsive narrow windows where the left sidebar is an overlay, clicking the \vdots menus for  
'All messages' and 'Starred messages' would result in the navigation closing and the menu appearing
somewhere weird.

We fix this the same way that we address this issue with the similar stream/topic menus, by calling
the function to show this sidebar after closing all popovers.

Fixes: #17537.
This commit is contained in:
yasiruRathnayaka97 2021-03-18 03:41:23 +05:30 committed by GitHub
parent 44ff6da107
commit 2d414fa897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,7 @@ function build_all_messages_popover(e) {
}
popovers.hide_all();
exports.show_streamlist_sidebar();
const content = render_all_messages_sidebar_actions();
@ -293,6 +294,7 @@ function build_starred_messages_popover(e) {
}
popovers.hide_all();
exports.show_streamlist_sidebar();
const content = render_starred_messages_sidebar_actions({
starred_message_counts: page_params.starred_message_counts,