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
4c48990c1f Decorate setItem/getItem to map between Objects and Strings. 2015-07-02 13:27:13 +01:00
df8ec50631 Add storeEvents UTs; fix bugs as a result. 2015-07-02 11:37:50 +01:00
ea738e31ba Add storeEvents impl. 2015-07-02 11:03:50 +01:00
023a3cf2bd Finish scrollback UTs. 2015-07-02 10:22:53 +01:00
23c3ce92d7 Finish scrollback impl. Add UTs. 2015-07-02 10:13:51 +01:00
df7bde4257 Merge pull request #10 from matrix-org/push
Push
2015-07-01 18:19:43 +01:00
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
214697eec9 Fix long line 2015-07-01 18:03:29 +01:00
db790f0b19 fixjsstyle 2015-07-01 18:02:35 +01:00
c81cb1fcfd Tests for pushprocessor 2015-07-01 18:01:48 +01:00
a890bff30f Actually flip the cache bit 2015-07-01 16:39:32 +01:00
9fd847567c Add get/setUser and getRooms with UTs. 2015-07-01 16:38:13 +01:00
213caf7c26 Add old state check. 2015-07-01 15:33:58 +01:00
732f9dc592 Restructure timeline batches to have high numbers = newest; it's less confusing that way. 2015-07-01 15:28:41 +01:00
22506513b4 Add more webstore unit tests. 2015-07-01 14:20:14 +01:00
753a11ab7f Move push actions method to the client 2015-07-01 14:09:34 +01:00
994fcceace Add another storeRoom test. Add stub tests for WebStorage. 2015-07-01 12:03:34 +01:00
2d08a6530c Don't need extra escaping; doesn't take coverage correctly. 2015-07-01 11:41:55 +01:00
841e02d102 Don't minify tests so we can get proper stack traces when running 'npm test'. 2015-07-01 10:33:03 +01:00
a0fddf7ab3 Linting. 2015-06-30 17:58:35 +01:00
c8da373ecc Add first cut webstorage implementation. Add very basic test. 2015-06-30 17:56:58 +01:00
3a8d99496c Merge branch 'master' into develop 2015-06-30 13:46:48 +01:00
319595407c Tweak example to mention startClient() 2015-06-30 13:46:27 +01:00
388cd3a6da Add init/del structs 2015-06-30 12:00:58 +01:00
aaecda53d6 Add scrollback to store interface 2015-06-30 11:48:49 +01:00
5d5d76d154 Pass a store implementation rather than kind string.
Makes it easier to test.
2015-06-30 11:39:57 +01:00
796afb104b s/localstorage/webstorage/g. Add storage impl notes.
WebStorage is preferred since we can trivially support local or session storage.
Add design notes for persisting rooms.
2015-06-30 11:30:49 +01:00
9416a9a8a3 Fix linting & c+p errors 2015-06-29 18:20:36 +01:00
22f08e4e5b Get rid of micromatch & reinstate our hacky version because micromatch, ironically, is huge. 2015-06-29 18:16:49 +01:00
a476b11f0c Add local storage impl notes 2015-06-29 17:55:11 +01:00
c82b2049eb prefix internal var with underscrore 2015-06-29 16:34:33 +01:00
2ab8f8cf76 closure linting errors 2015-06-29 16:21:32 +01:00
53f2f156ca Fix linting errors 2015-06-29 16:09:07 +01:00
083a0980eb javascript function syntax #3... 2015-06-29 15:57:20 +01:00
1be02a3c3c Port over push rule eveluator from the angular SDK and make it available on MatrixEvent 2015-06-29 15:53:23 +01:00
21150e7587 Doc fail 2015-06-26 16:50:55 +01:00
3806c4d566 Missing semicolon 2015-06-26 16:49:07 +01:00
b814872c37 unnecessary semicolon 2015-06-26 16:45:59 +01:00
b2656024bd Merge branch 'develop' into push
Conflicts:
	lib/client.js
2015-06-26 16:39:32 +01:00
b7975866fa Add getSyncToken and setSyncToken to data store interface.
This allows local storage to hold onto the token across page refreshes.
2015-06-26 15:36:53 +01:00
6078100465 Export LocalStorageStore class. Throw if 'localStorage' isn't defined. 2015-06-26 15:24:55 +01:00
a3a59f4456 Add localstorage store module. 2015-06-26 15:13:04 +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
320bbec737 Add MatrixScheduler.getQueue to allow items in the queue to be modified. 2015-06-25 18:00:07 +01:00
041f96ae6d Add remaining stub tests 2015-06-25 17:56:18 +01:00
f240563fb5 Add room state/syncing stub tests 2015-06-25 17:49:46 +01:00
e8d17a5ab3 Add missing pagination test 2015-06-25 17:36:21 +01:00