# Atividade de usuário estranha; sempre ativo dentro de 1 minuto

**URL:** <https://meta.discourse.org/t/odd-user-activity-always-active-within-1-minute/102712>\
**Category:** Product Support\
**Created:** [Novembro 25, 2018, 8:30am UTC](https://meta.discourse.org/t/odd-user-activity-always-active-within-1-minute/102712 "2018-11-25T08:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [Novembro 26, 2018, 12:31pm UTC](https://meta.discourse.org/t/odd-user-activity-always-active-within-1-minute/102712/12 "2018-11-26T12:31:36Z")

</div>

> [@sam](#):
>
> Message bus does not count as a vector for updating “seen”…

I think it does, but only if the app sets `Discourse-Visible=true`:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/initializers/message-bus.js.es6#L62-L64](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/initializers/message-bus.js.es6#L62-L64)

`pageVisible` tries to check whether the browser window has focus:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/page-visible.js.es6#L1-L15](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/page-visible.js.es6#L1-L15)

This logic has massive impacts on the whos-online plugin, so I’ve spent a fair amount of time looking at it. There have been issues in the past with Firefox incorrectly setting the `hasFocus` parameter. From the user agent you posted above it looks like an up-to-date version of chrome, so that’s unlikely to be the issue.

My guess is that the user has left the tab open in the foreground, and has some weird screensaver/sleep configuration such that the tab never loses focus.

---

_[View the full topic](https://meta.discourse.org/t/odd-user-activity-always-active-within-1-minute/102712)._
