1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00
Commit Graph

1904 Commits

Author SHA1 Message Date
Kegan Dougal
b4c353e65f Linting 2015-11-04 15:37:10 +00:00
Kegan Dougal
e42f6c0cad Add http fixings to allow MatrixClient UTs 2015-11-04 15:35:31 +00:00
David Baker
904539df58 Fix c+p fail & add unit test 2015-11-04 12:02:02 +00:00
Kegan Dougal
c9df9c33a8 Linting 2015-11-04 11:53:10 +00:00
Kegan Dougal
5c3bfa6a83 Add stub unit tests for syncing 2015-11-04 11:50:32 +00:00
Kegan Dougal
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
Kegsay
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
Kegan Dougal
2675442ced Line lengths 2015-10-26 16:31:10 +00:00
Kegan Dougal
aa3e6514c6 Add test for firing (pew pew) of events 2015-10-26 16:30:15 +00:00
Kegan Dougal
be6d64fbfd Add integration tests; fix bugs. 2015-10-26 16:12:06 +00:00
Kegan Dougal
0227b1c68d Add search functions and tests 2015-10-26 13:27:45 +00:00
Kegan Dougal
cab7a71a94 Change calculating display names from O(n^2) to O(n)
Reduces initial sync times from ~30s to ~1s on accounts with heavily
populated rooms.

The problem was that f.e. RoomMember it would try to calculate the
display name, which involved looping each RoomMember to get their
display name to check for disambiguation. We now cache display names
to user IDs so we don't need to loop every member when disambiguating.
2015-10-21 13:25:23 +01:00
Kegan Dougal
343d63a28a Merge branch 'develop' into room-avatars 2015-10-19 15:33:42 +01:00
Kegsay
0a28d6e950 Merge pull request #26 from matrix-org/invite-room-state
Invite room state
2015-10-19 15:31:45 +01:00
Kegan Dougal
2c213f88d9 Units! Tests! Linting! 2015-10-19 15:24:24 +01:00
Kegan Dougal
a236219111 ContentRepo unit tests 2015-10-19 15:00:06 +01:00
Kegan Dougal
5ae87b7c95 Bug fixes and unit tests 2015-10-16 17:27:05 +01:00
Kegan Dougal
a101857cb6 Add integration tests for read receipts 2015-10-16 13:51:44 +01:00
Kegan Dougal
a52f92830a Implement unit tests for read receipts. 2015-10-16 13:37:53 +01:00
Kegan Dougal
7ec8421d19 Fix linting errors 2015-10-16 11:38:49 +01:00
Kegan Dougal
9048efeb65 Implement receipt handling and expose new Room functions
Add polyfills for Array.map/filter according to MDN because it looks much
better than the utils format.

Add stub tests for edge cases and implement test for the common case.
2015-10-16 11:32:27 +01:00
Kegan Dougal
0988332850 Minor cleanup 2015-10-13 10:05:29 +01:00
Kegan Dougal
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
Kegan Dougal
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
Mark Haines
58e44a2fc3 Disable end-to-end crypto 2015-07-23 09:30:50 +01:00
Mark Haines
ae8e01839e Add flag for indicating if an event was encrypted 2015-07-22 11:57:34 +01:00
Mark Haines
9e5f30fe1f Fix some lint errors 2015-07-22 11:37:22 +01:00
Mark Haines
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
Mark Haines
09f7011bc5 Add method for telling if room is encrypted 2015-07-21 18:09:10 +01:00
Mark Haines
ffbc197650 Flush the httpBackend in the last crypto test 2015-07-21 17:53:04 +01:00
Mark Haines
02c2e88a3e Fix some of the lint warnings 2015-07-21 17:39:11 +01:00
Mark Haines
816bb61689 Increase the timeout for the last crypto integ test 2015-07-21 17:07:10 +01:00
Mark Haines
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
Kegan Dougal
32c4d3ffc4 Parse m.presence events from /events 2015-07-20 10:07:34 +01:00
Mark Haines
62ac369500 Fix test name 2015-07-17 18:51:23 +01:00
Mark Haines
8e6e1e64c7 Add integration test for the end-to-end crypto 2015-07-17 18:47:34 +01:00
Mark Haines
2ee5977ad2 Start integrating end-to-end into the matrix-client. Add a storage class to store end-to-end sessions. Implement the one-time key upload API, and start sketching out the encryption and decryption functions 2015-07-16 18:21:25 +01:00
Kegan Dougal
c5718891c5 Fix tests. Add MatrixCall.setLocalVideoElement 2015-07-16 10:07:19 +01:00
Kegan Dougal
4c48990c1f Decorate setItem/getItem to map between Objects and Strings. 2015-07-02 13:27:13 +01:00
Kegan Dougal
df8ec50631 Add storeEvents UTs; fix bugs as a result. 2015-07-02 11:37:50 +01:00
Kegan Dougal
023a3cf2bd Finish scrollback UTs. 2015-07-02 10:22:53 +01:00
Kegan Dougal
23c3ce92d7 Finish scrollback impl. Add UTs. 2015-07-02 10:13:51 +01:00
Kegsay
df7bde4257 Merge pull request #10 from matrix-org/push
Push
2015-07-01 18:19:43 +01:00
Kegan Dougal
82de3b6f19 Begin scrollback implementation.
Add Room.storageToken to docs. Add unit test stubs for scrollback function.
Add a basic common-case implementation.
2015-07-01 18:04:59 +01:00
David Baker
214697eec9 Fix long line 2015-07-01 18:03:29 +01:00
David Baker
db790f0b19 fixjsstyle 2015-07-01 18:02:35 +01:00
David Baker
c81cb1fcfd Tests for pushprocessor 2015-07-01 18:01:48 +01:00
Kegan Dougal
9fd847567c Add get/setUser and getRooms with UTs. 2015-07-01 16:38:13 +01:00
Kegan Dougal
213caf7c26 Add old state check. 2015-07-01 15:33:58 +01:00
Kegan Dougal
732f9dc592 Restructure timeline batches to have high numbers = newest; it's less confusing that way. 2015-07-01 15:28:41 +01:00