activity: Rename has_focus to client_is_active.

This makes it a lot more clear what it actually means, which is not
directly related to whether the browser window is focused.
This commit is contained in:
Tim Abbott
2019-06-28 17:52:15 -07:00
parent 42d29d58a1
commit 746206f071
3 changed files with 18 additions and 15 deletions

View File

@@ -939,7 +939,7 @@ MessageListView.prototype = {
return false;
}
if (!activity.has_focus) {
if (!activity.client_is_active) {
// Don't autoscroll if the window hasn't had focus
// recently. This in intended to help protect us from
// auto-scrolling downwards when the window is in the