recent_topics: Don't revive focus when RT is not in focus.

When there is any overlay or popover open or user is focused on
any other input, we don't revive focus within recent topics.

Fixes #17875
This commit is contained in:
Aman Agrawal
2021-03-30 08:38:06 +00:00
committed by Tim Abbott
parent 134db206a9
commit e8b7ad886d
3 changed files with 19 additions and 10 deletions

View File

@@ -94,6 +94,7 @@ mock_esm("../../static/js/hotspots", {
mock_esm("../../static/js/recent_topics", {
is_visible: () => false,
is_in_focus: () => false,
});
message_lists.current = {