Commit Graph

3 Commits (3b03e23ace490cfe96fdcde3c0f6a1c5d85b894c)

Author SHA1 Message Date
David Baker ce9f3d8a57 Rename 2019-03-11 11:38:54 +00:00
David Baker 61ebf4d920 spurious semicolon 2019-03-08 13:52:04 +00:00
David Baker ce1623691e Fix instantly sending RRs
Splits UserActivity into a tristate of 'active' (last < 1s), 'passive' (lasts a
couple of mins) and neither. Read receipts are sent when 'active', read markers
are sent while 'passive'.

Also fixed a document / window mix-up on the 'blur' handler.

Also adds a unit test for UserActivity because it's quite complex now
(and changes UserActivity to make it testable by accessing the singleton
via sharedInstance() rather than exporting it directly).

Fixes https://github.com/vector-im/riot-web/issues/9023
2019-03-08 12:46:38 +00:00