1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
Commit Graph

19 Commits

Author SHA1 Message Date
Richard van der Hoff
d87e5471fa Refactor the addition of events to rooms
... and add some sanity checks

Two things here:

1. Clean up the Room API for adding new events to the timeline. Where before
we had addEvents and addEventsToTimeline, whose purposes were unclear, we now
have addLiveEvents which must be used for adding events to the end of the live
timeline, and addEventsToTimeline which should be used for pagination (either
back-pagination of the live timeline, or pagination of an old timeline).

2. Add some sanity checks for the live timeline. Today we have seen problems
where somehow the live timeline had gained a forward pagination token, or the
live timeline had got joined to another timeline, leading to much confusion -
and I would like to notice these sooner.
2016-04-14 17:03:25 +01:00
Matthew Hodgson
446faed9b5 copyrights please... 2016-01-07 04:15:38 +00:00
Kegan Dougal
1987726a95 Add initial v2 filter impl 2015-12-08 15:23:09 +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
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
ea738e31ba Add storeEvents impl. 2015-07-02 11:03:50 +01:00
Kegan Dougal
23c3ce92d7 Finish scrollback impl. Add UTs. 2015-07-02 10:13:51 +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
Kegan Dougal
a890bff30f Actually flip the cache bit 2015-07-01 16:39:32 +01:00
Kegan Dougal
9fd847567c Add get/setUser and getRooms with UTs. 2015-07-01 16:38:13 +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
Kegan Dougal
22506513b4 Add more webstore unit tests. 2015-07-01 14:20:14 +01:00
Kegan Dougal
994fcceace Add another storeRoom test. Add stub tests for WebStorage. 2015-07-01 12:03:34 +01:00
Kegan Dougal
c8da373ecc Add first cut webstorage implementation. Add very basic test. 2015-06-30 17:56:58 +01:00
Kegan Dougal
388cd3a6da Add init/del structs 2015-06-30 12:00:58 +01:00
Kegan Dougal
aaecda53d6 Add scrollback to store interface 2015-06-30 11:48:49 +01:00
Kegan Dougal
5d5d76d154 Pass a store implementation rather than kind string.
Makes it easier to test.
2015-06-30 11:39:57 +01:00
Kegan Dougal
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