zulip/frontend_tests
Mateusz Mandera 88d501515e presence: Fix "Last active:" in buddy list when last presence is idle.
Restored old behavior accidentally removed in
1ae07b93d8 (diff-e353fab8bea58b8746ec68c83aa39b36L48)

The server only remembers the most recent presence status update per
device. Meaning that, for instance, if the user only uses one client and
that client's last status update was IDLE, then the server only knows
that, doesn't know anything about the user's last ACTIVE time. Thus the
"active_timestamp" the server will serve about this user to the webapp
will be "undefined".
The old behavior was that for the sake of the "Last active: x ago"
status in buddy list popover, the latest status timestamp was used,
whether IDLE or ACTIVE.
The change linked about changed that to only pay attention to
ACTIVE. Thus, if the server doesn't remember any ACTIVE statuses, webapp
would show "Last active: More than 2 weeks ago", which was incorrect.

We restore the old behavior and further improvements can be made on top
of this.
2020-05-29 13:26:34 -04:00
..
casper_lib js: Use hasOwnProperty correctly or not at all. 2020-05-26 23:33:40 -07:00
casper_tests settings org: Trigger realm icon upload by clicking on realm icon element. 2020-05-27 17:15:14 -07:00
node_tests presence: Fix "Last active:" in buddy list when last presence is idle. 2020-05-29 13:26:34 -04:00
puppeteer_lib puppeteer: Take screenshot on failure. 2020-05-27 12:50:22 -07:00
puppeteer_tests puppetter: Add a waitForNavigation call before asserting the url. 2020-05-27 12:53:17 -07:00
zjsunit mdiff: Convert formatter, aliases from object to Map. 2020-05-26 23:33:40 -07:00
.eslintrc.json lint: Check eslint indentation for casper tests. 2018-05-06 19:35:18 -07:00
run-casper python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00