Kegan Dougal
4cd6f615b3
Do bear minimum leave room handling so rejecting invites / leaving rooms are displayed correctly.
2015-12-15 16:21:36 +00:00
Kegan Dougal
65ef1dfd75
Lint and tests
2015-12-15 15:57:24 +00:00
Kegan Dougal
5719d513b7
Strip protocol part when doing 3PID invites for. Partially fixes vector-im/vector-web#419
2015-12-15 15:52:52 +00:00
Kegsay
b90697264c
Follow the spec
2015-12-15 15:33:56 +00:00
Kegan Dougal
406a2bb001
Do not erroneously emit Call.incoming events on startup
...
Check to see if the call was answered or hung up in addition to having a valid
lifetime before emitting the event. Fixes vector-im/vector-web#344
2015-12-15 15:13:41 +00:00
Kegsay
3115043b94
Merge pull request #53 from matrix-org/kegan/v2-sync
...
Use /sync instead of /initialSync and /events
2015-12-15 14:24:26 +00:00
Kegan Dougal
bfda04daea
Move local timeout logic to the HTTP API class. Fixes /sync bug
...
The ability to set a local timeout is applicable to any request, so move it
to http-api.js - We only use this on /sync requests currently. This simplifies
the SyncApi since it doesn't need to worry about it anymore -- the request
promise just gets rejected if the timer expires.
Whilst testing I noticed a weird anomaly which I cannot explain. Playing with
Chrome's network debugger, once you recover from a black hole (0kbps, 90s RTT)
the subsequent requests take 20s to return *even though there is no throttling*.
This was causing issues when using a local timer of timeout= and BUFFER_PERIOD_MS
when timeout=1 due to attempts>1 - they were being knifed before the response
could return. The 20s latency was entirely artifical (checked synapse logs and
they were sub 1s), but I cannot find anywhere in the JS-SDK or browser-requests
where this would be the cause. This persisted even when BUFFER_PERIOD_MS was
changed from 20s to 10s.
2015-12-15 11:59:41 +00:00
Kegan Dougal
46504b8b9f
Fix tests; need more paranoia
2015-12-14 14:16:47 +00:00
Kegan Dougal
f48c9175e5
Linting
2015-12-14 14:12:49 +00:00
Kegan Dougal
bd4d8433ab
Fix catchup bugs caused by using a stale pagination token
2015-12-14 14:11:25 +00:00
Kegan Dougal
a00e318d73
Fix pagination - set prev_batch at the right time
2015-12-14 12:28:04 +00:00
Kegan Dougal
fcf1abb185
Use v2 transaction IDs to suppress dupes without linear scans of the timeline!
2015-12-14 11:35:50 +00:00
Kegan Dougal
13cab79e04
Revert prev commit - emit SYNCING>SYNCING and now comment why we do this
2015-12-14 10:31:27 +00:00
Kegan Dougal
fc6ce20e14
Check unsigned.age for getAge() for v2. Don't spam SYNCING emissions.
2015-12-14 10:27:53 +00:00
Kegan Dougal
9c49d26525
Linting
2015-12-14 09:24:33 +00:00
Kegan Dougal
d6299b634c
Scope filter keys in localStorage on user_id
2015-12-14 09:22:02 +00:00
Kegan Dougal
a6f64b5f03
v2 filter test
2015-12-11 15:27:40 +00:00
Kegan Dougal
465635444f
s/user_id/sender/g in tests
2015-12-11 15:07:40 +00:00
Kegan Dougal
eedff29acb
Add filter stub to crypto test
2015-12-11 13:35:46 +00:00
Kegan Dougal
7c43d15ea5
More linting; crypto test fix
2015-12-11 13:31:26 +00:00
Kegan Dougal
de32ac0c44
Fix linting
2015-12-11 13:23:46 +00:00
Kegan Dougal
3d9d31d6b1
Fix remaining integration tests
2015-12-11 13:22:27 +00:00
Kegan Dougal
b219836b3e
Fix a bunch of integration tests
2015-12-11 12:53:26 +00:00
Kegan Dougal
26d9fed537
Fix MatrixClient unit tests
2015-12-11 11:07:31 +00:00
Kegan Dougal
d6ba39f292
More linting
2015-12-10 15:01:39 +00:00
Kegan Dougal
8576ebce8f
Linting
2015-12-10 14:57:13 +00:00
Kegan Dougal
f08152a1d8
Handle ephemeral and account_data events
2015-12-10 14:27:21 +00:00
Kegan Dougal
6af2197183
Process join rooms and add local timeouts to /sync
...
This actually works now, though there's a number of teething
issues which may be app-specific. That, and all the tests are
broken.
2015-12-10 14:14:56 +00:00
Kegan Dougal
4c7e6807d2
Parse invites from /sync
2015-12-10 13:26:50 +00:00
Kegan Dougal
11f0513c62
Merge branch 'develop' into kegan/v2-sync
2015-12-10 11:50:48 +00:00
Kegan Dougal
3d57b4ce6a
Be paranoid on /sync processing
2015-12-09 16:41:36 +00:00
Kegan Dougal
243bdd78f4
Handle presence key in /sync
2015-12-09 16:09:47 +00:00
Kegan Dougal
b622960b32
Do all prep for /sync calls
...
This includes managing filters in localStorage. The /sync response
is not yet parsed.
2015-12-09 15:25:09 +00:00
Kegan Dougal
06f927aa22
Minor cleanup and reshuffle
2015-12-09 11:27:03 +00:00
Kegan Dougal
f7ffed4b98
More linting
2015-12-09 11:19:20 +00:00
Kegan Dougal
0576e4ca0c
Linting
2015-12-09 11:16:46 +00:00
Kegan Dougal
529fb23555
Linting
2015-12-09 10:43:21 +00:00
Kegan Dougal
3543abf7bd
Make things work again
2015-12-09 10:42:38 +00:00
Kegsay
a5847485b9
Merge pull request #52 from matrix-org/kegan/v2-filters
...
Support v2 filters
2015-12-09 09:10:59 +00:00
Kegan Dougal
2b659656cc
Move alllll the sync code to sync.js - still more to do (in FIXME XXX)
2015-12-08 17:41:09 +00:00
Kegan Dougal
ac3aa5538f
Linting
2015-12-08 16:10:52 +00:00
Kegan Dougal
c65f32f6a6
Add filter integration tests; more bug fixes.
2015-12-08 16:08:04 +00:00
Kegan Dougal
86a162c818
Add filter UTs and fix bugs
2015-12-08 15:39:55 +00:00
Kegan Dougal
1987726a95
Add initial v2 filter impl
2015-12-08 15:23:09 +00:00
Kegsay
d2537cd00c
Merge pull request #51 from matrix-org/kegan/unsent-timeline
...
Add config option to control how pending events are ordered
2015-12-07 17:00:43 +00:00
Kegan Dougal
61db191835
Add UTs
2015-12-07 15:45:13 +00:00
Kegan Dougal
b7ac6a2e33
Add config option to sort pending events to the end of the timeline
2015-12-07 15:36:32 +00:00
Kegan Dougal
c0178c3e80
Add getScheduler. Fix JSDoc
2015-12-07 11:29:02 +00:00
Kegsay
e58fb29722
Merge pull request #50 from matrix-org/kegan/scrollback-requests
...
Scrollback improvements
2015-12-04 17:39:22 +00:00
Kegan Dougal
a1300ec095
Wait for the last request (/messages, not /events)
2015-12-04 17:34:56 +00:00