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

10444 Commits

Author SHA1 Message Date
f49234a772 Add pagination tests 2015-06-25 17:29:25 +01:00
46d5c2bd61 Add pagination test; fix null token bug. 2015-06-25 16:33:22 +01:00
325c00c660 Set Room.oldState.paginationToken to null at the start of the timeline. Fix linting errors. 2015-06-25 15:28:25 +01:00
c4c68a0287 Add local echo tests. 2015-06-25 15:24:56 +01:00
21df000604 Add Room.addEvents UT 2015-06-25 14:00:52 +01:00
0be3c6837d Add utils UTs. Remove unused functions. 2015-06-24 17:42:02 +01:00
74fcbdee3f Add retryFn -1 test. 2015-06-24 17:14:11 +01:00
332bdcd101 Add Scheduler UTs. 2015-06-24 17:05:06 +01:00
913178b284 Linting 2015-06-24 15:38:18 +01:00
2a83248168 Add User UTs 2015-06-24 15:37:55 +01:00
8f16948430 Appease linters 2015-06-24 14:57:48 +01:00
1b665c176a Add RoomState UTs 2015-06-24 14:57:04 +01:00
0bc9951f13 Add RoomState UT stubs. 2015-06-24 13:52:17 +01:00
d3377e3dea Add RoomMember UTs. Fix disambiguation bug. Add CHANGELOG. 2015-06-24 13:35:19 +01:00
b3efafebbe Restructure test layout. 2015-06-24 12:53:15 +01:00
a12133ec9f Appease linters 2015-06-24 11:44:00 +01:00
f763eb3f37 Convert all helper functions which make events to use kwargs 2015-06-24 11:43:16 +01:00
26a23b19b3 Use an opts for helper mk functions; poor man's keyword args. 2015-06-24 11:14:54 +01:00
9d967fb232 Add some UTs to Room methods 2015-06-24 11:05:18 +01:00
62d7ff5ba9 Add colours to terminal. Sort room list by TS. 2015-06-23 17:46:52 +01:00
b0ca6609f4 Merge branch 'develop' v0.1.1 2015-06-23 15:45:09 +01:00
ff9bc0b865 Merge branch 'release-v0.1.1' into develop 2015-06-23 15:44:47 +01:00
b3ef0b90ac Update README 2015-06-23 15:44:24 +01:00
805d914940 Bump to 0.1.1. Add 'npm run release' script. 2015-06-23 15:42:08 +01:00
de560d1a4a Update CHANGELOG.md 2015-06-23 15:27:18 +01:00
07d3f43d8b Refactor terminal app; add /invite and /roominfo. 2015-06-23 15:22:57 +01:00
57914969b8 Add MatrixClient.resendEvent to manually resend an event that was not sent.
Bundle txnId as MatrixEvent._txnId instead of exposing it to every place that
happens to need it (since it's so tightly coupled with MatrixEvent)
2015-06-23 14:08:02 +01:00
378c7fd6cb Update docs 2015-06-23 12:15:41 +01:00
7534f59af2 Hook up the callback fn for scrollback. Update CHANGELOG. 2015-06-23 12:04:43 +01:00
553325d66f Improve UX on node terminal app.
Add auto-complete, history and a prompt prefix.
2015-06-23 11:50:17 +01:00
6737388766 Implement pagination via the scrollback() function. Update CHANGELOG. 2015-06-23 11:36:30 +01:00
b7ed78b432 Update CHANGELOG. Add StubStore.
Default to a no-op store class to prevent having to constantly check for
MatrixClient.store and other defensive checks which clutters the intent
of the code.
2015-06-23 11:03:08 +01:00
9c2a2902eb Fix bug where hibernating laptops fail to restart the event stream.
On some devices, the act of hibernating black holes the request so the
success/failure callbacks never fire. This prevents a re-poll as that is done
in the callbacks. To fix this, we add a local timer which, when it fires,
will forcibly do a re-poll. The local timer has a timeout value several
seconds more than the timeout= value (which should've returned by then).
2015-06-23 10:40:53 +01:00
ef77c6f989 Sync room state when another device joins a room. 2015-06-23 10:18:13 +01:00
bc0e2ad504 Sync room state when joining via client.joinRoom
Does not currently sync state when another device joins.
Update node example app to refresh room list.
2015-06-22 17:50:49 +01:00
ad70b3d434 Don't set NOT_SENT in the scheduler; the MatrixClient is responsible for this. 2015-06-19 17:19:48 +01:00
002ae08f04 Update CHANGELOG.md 2015-06-19 17:16:38 +01:00
402a648a92 Update list of what the SDK does 2015-06-19 17:15:36 +01:00
756fe4ddcb Implement MatrixScheduler. 2015-06-19 16:53:28 +01:00
898d16ae76 Update CHANGELOG 2015-06-19 16:07:36 +01:00
18db0d8c02 Emit 'Room' event when the Room is fully populated rather than newly created. 2015-06-19 16:05:13 +01:00
2f78ceb6fc Design the API for the scheduler and hook MatrixClient up to it.
Scheduler itself still needs internal impl.
2015-06-19 15:50:05 +01:00
8a9f84a4b2 Don't return something which doesn't exist. 2015-06-18 17:49:13 +01:00
1e3162128a Shelve scheduler queue work. Add processFn. 2015-06-18 13:56:46 +01:00
7e12ea4273 Start gluing MatrixClient and MatrixScheduler. 2015-06-18 12:07:18 +01:00
18a3ce415c Add _queues to MatrixScheduler. 2015-06-18 11:49:34 +01:00
ca414d1611 Implement rate limiting in the default retry algorithm. 2015-06-18 11:28:17 +01:00
ba56f5f621 Implement MatrixScheduler.
Formed of two parts: the retry and queuing functions. Use sensible defaults.
2015-06-18 11:11:07 +01:00
4810d04257 Add stub MatrixScheduler. 2015-06-18 10:07:44 +01:00
8d77edce86 Formatting 2015-06-18 10:01:13 +01:00