6f7ed93b87
Merge pull request #100 from matrix-org/dbkr/session_logged_out
...
Add Session.logged_out event
2016-03-16 10:44:01 +00:00
6040b50ceb
Fix another unit test
...
We ought to set the transaction_id in this test too
2016-03-15 15:49:21 +00:00
b88a207bde
Fix broken unit test
...
Fix broken unit tests which expected echoes to get matched up when
transaction_ids weren't set
2016-03-15 15:39:29 +00:00
39a5765888
Test tghat Session.logged_out is fired
2016-03-15 14:50:37 +00:00
cfd96969fc
Add unit tests for setting the pagination token on sync
2016-03-01 13:58:29 +00:00
0034bdf4ad
Set the back-pagination token before raising Room.timelineReset
...
This fixes another race condition on gappy syncs, wherein we weren't
back-paginating back from the start of the gappy sync.
2016-03-01 13:35:22 +00:00
76f84c54db
Add a unit test for syncLeftRooms
...
We don't have *any* tests for syncLeftRooms right now, so start one.
2016-03-01 12:12:49 +00:00
abf908b14f
Fire a 'Room.timelineReset' event when we get a gappy sync
...
We need to reset things at the UI level when we get a gappy sync, so give the
clients something to listen for.
Also add a bunch of tests for that bit of code.
2016-02-25 18:26:11 +00:00
24ae4a8d1a
Interpret the response from /context correctly
...
events_before are backwards
Fixes https://github.com/vector-im/vector-web/issues/963
2016-02-19 17:03:47 +00:00
f3e5e03009
Give precedence to later Read Receipts
...
In order to resolve the conflict between local and remote read-receipts, try to
give precedence to the read-receipt which refers to the most recent event.
Also fix the read-receipt synthesis in _addLiveEvents so that it actually works
(drop the spurious MatrixEvent wrapper), and remove the synthesis in
recalculate() (which appears to be redundant).
2016-02-04 15:35:27 +00:00
9e65f12ddd
Fix lint warnings
2016-02-03 14:29:39 +00:00
8ee1d17ff7
Fix a bug which made the timelines get confused about local messages
...
Make sure that the timeline index is kept consistent when the id of an event
changes when we receive the remote echo of a message we sent.
2016-02-03 11:56:09 +00:00
60a243f160
Rename 'exceptFail' to 'failTest', and move it out to test-utils.js
2016-01-27 09:48:28 +00:00
a87cefa035
Replace the boolean args on EventTimeline methods with constants
2016-01-26 22:38:26 +00:00
a01501b42c
Address a number of review comments.
...
Make sure that room state is copied correctly when resetting the live
timeline.
Also comments and bits.
2016-01-26 18:09:15 +00:00
43e7173c30
fix some racy tests
2016-01-16 00:18:51 +00:00
706966ffe9
Support for non-contiguous event timelines
...
This provides optional support for fetching old events via the /context API,
and paginating backwards and forwards from them, eventually merging into the
live timeline.
To support it, events are now stored in an EventTimeline, rather than directly
in an array in the Room; the old names are maintained as references for
compatibility.
The feature has to be enabled explicitly, otherwise it would be impossible for
existing clients to back-paginate to the old events after a gappy /sync.
Still TODO here:
* An object which provides a window into the timelines to make them possible to
use. This will be a separate PR.
* Rewrite the 'EventContext' used by the searchRoomEvents API in terms of an
EventTimeline - it is essentially a subset.
2016-01-15 13:19:11 +00:00
eedff29acb
Add filter stub to crypto test
2015-12-11 13:35:46 +00:00
7c43d15ea5
More linting; crypto test fix
2015-12-11 13:31:26 +00:00
de32ac0c44
Fix linting
2015-12-11 13:23:46 +00:00
3d9d31d6b1
Fix remaining integration tests
2015-12-11 13:22:27 +00:00
b219836b3e
Fix a bunch of integration tests
2015-12-11 12:53:26 +00:00
ac3aa5538f
Linting
2015-12-08 16:10:52 +00:00
c65f32f6a6
Add filter integration tests; more bug fixes.
2015-12-08 16:08:04 +00:00
a1300ec095
Wait for the last request (/messages, not /events)
2015-12-04 17:34:56 +00:00
4b93d801ae
Implement the new sync state API
...
Also have retry schemes for the rest of the syncing ops (/events, /pushrules)
2015-11-03 16:44:19 +00:00
cc0d8da416
Merge pull request #32 from matrix-org/member-info-for-invites
...
Retrieving profile info for invites
2015-10-26 16:42:21 +00:00
2675442ced
Line lengths
2015-10-26 16:31:10 +00:00
aa3e6514c6
Add test for firing (pew pew) of events
2015-10-26 16:30:15 +00:00
be6d64fbfd
Add integration tests; fix bugs.
2015-10-26 16:12:06 +00:00
0227b1c68d
Add search functions and tests
2015-10-26 13:27:45 +00:00
a101857cb6
Add integration tests for read receipts
2015-10-16 13:51:44 +01:00
3864472057
Fix test race condition.
...
It was possible for the test to end (via done()) before the final /events req
was flushed, resulting in a fail as there were requests outstanding. We now wait
until the final flush is done before done()ing.
2015-07-28 13:40:02 +01:00
14e91624bd
no-op if joinRoom is called when you're already joined. Add test for this.
...
Also ignore missing require()s when building (missing olm).
2015-07-28 13:13:55 +01:00
58e44a2fc3
Disable end-to-end crypto
2015-07-23 09:30:50 +01:00
ae8e01839e
Add flag for indicating if an event was encrypted
2015-07-22 11:57:34 +01:00
319ca5123e
Return device key list in a stable order, add a check for the list in the tests
2015-07-22 11:34:38 +01:00
09f7011bc5
Add method for telling if room is encrypted
2015-07-21 18:09:10 +01:00
ffbc197650
Flush the httpBackend in the last crypto test
2015-07-21 17:53:04 +01:00
02c2e88a3e
Fix some of the lint warnings
2015-07-21 17:39:11 +01:00
816bb61689
Increase the timeout for the last crypto integ test
2015-07-21 17:07:10 +01:00
65d64bf223
Merge remote-tracking branch 'origin/develop' into markjh/end_to_end
...
Conflicts:
lib/client.js
lib/matrix.js
2015-07-20 10:43:23 +01:00
32c4d3ffc4
Parse m.presence events from /events
2015-07-20 10:07:34 +01:00
62ac369500
Fix test name
2015-07-17 18:51:23 +01:00
8e6e1e64c7
Add integration test for the end-to-end crypto
2015-07-17 18:47:34 +01:00
9ea080b7bb
Fetch the user's push rules before any events arrive, so we can annotate events with push data when they arrive.
2015-06-26 15:11:27 +01:00
20b5553e48
Implement MatrixClient tests without a scheduler/store.
2015-06-26 14:26:57 +01:00
fd0eb0c674
Finish timline integration tests.
2015-06-26 13:53:01 +01:00
3c4bda8580
Add MatrixScheduler.removeEventFromQueue/getQueueForEvent and QUEUED state.
...
This is to allow the UI to show "queued" on events as well as allow the
removal of events in the queue.
2015-06-26 09:52:52 +01:00
041f96ae6d
Add remaining stub tests
2015-06-25 17:56:18 +01:00