Commit Graph

3078 Commits

Author SHA1 Message Date
Danila Fedorin
6d524384e9 Merge branch 'DanilaFe/backfill-changes' into context-api 2021-09-17 15:22:45 -07:00
Danila Fedorin
9f6c48cf0c Merge branch 'master' into DanilaFe/backfill-changes 2021-09-17 15:19:16 -07:00
Danila Fedorin
668fb37da9 Test appending as well as prepending 2021-09-17 14:42:52 -07:00
Danila Fedorin
906f95baf9 Add some context-specific tests 2021-09-17 12:53:04 -07:00
Danila Fedorin
4f22c23589 Add new fragment to ID comparer 2021-09-17 12:02:10 -07:00
Danila Fedorin
39f141820a Error on missing tokens and properly set next/previous tokens 2021-09-17 12:02:10 -07:00
Danila Fedorin
1d71665c48 Avoid creating new fragments when posible 2021-09-17 12:02:10 -07:00
Danila Fedorin
fdfea95d22 Refactor finding overlapping to no longer need entries 2021-09-17 12:02:09 -07:00
Danila Fedorin
57c4070505 Fetch event from server if not in storage 2021-09-17 12:01:40 -07:00
Danila Fedorin
2501bad4b4 Move context fetching into BaseRoom 2021-09-17 12:01:40 -07:00
Danila Fedorin
5b868a9064 Only call room-specific gap filling hooks once 2021-09-17 12:01:40 -07:00
Danila Fedorin
889f4dd104 Return fetched or retrieved entry from GapWriter 2021-09-17 12:01:40 -07:00
Danila Fedorin
7f91e0c1bd Avoid simply incrementing fragment ID to get next fragment 2021-09-17 12:01:40 -07:00
Danila Fedorin
3ce2d0777d Add new fragment to list of updated fragment list 2021-09-17 12:01:40 -07:00
Danila Fedorin
021844bf0a Allow simultaneous adds 2021-09-17 12:01:40 -07:00
Danila Fedorin
1b6fea6e4d Add created fragment to store 2021-09-17 12:01:40 -07:00
Danila Fedorin
e06abcc399 Fix many small issues from before I ran the code 2021-09-17 12:01:40 -07:00
Danila Fedorin
8592fcf8c7 Add experimental code to fetch an event's context 2021-09-17 12:01:40 -07:00
Danila Fedorin
299abe3e7e Extract some gap filling functionality into a helper method 2021-09-17 12:01:40 -07:00
Danila Fedorin
ae6e211150 Add a context call 2021-09-17 12:01:40 -07:00
Danila Fedorin
8d7c12fd59 [WIP] Add code to GapWriter for context API 2021-09-17 12:01:40 -07:00
Danila Fedorin
820b048272 Finish up the more difficult tests 2021-09-17 10:57:51 -07:00
Bruno Windels
08fe430c4b release v0.2.11 2021-09-17 18:38:30 +02:00
Bruno Windels
4759b44233
Merge pull request #500 from vector-im/bwindels/idb-write-logging
IDB write error logging
2021-09-17 18:37:55 +02:00
Bruno Windels
53a0d29244 example how to get more context for the failure of a write operation 2021-09-17 18:25:28 +02:00
Bruno Windels
f5467a653c fix stores returning the delete promise which isn't returned anymore
I checked these aren't awaited in any js file
2021-09-17 18:24:24 +02:00
Bruno Windels
ad45016b87 process write errors on complete or abort in transaction 2021-09-17 18:23:31 +02:00
Bruno Windels
533b0f40d3 pass write errors in a store to the transaction 2021-09-17 18:21:48 +02:00
Bruno Windels
aeedb948cc pass logger to Storage and make it available in Transaction 2021-09-17 18:19:26 +02:00
Danila Fedorin
82c35355b6 Start translating GapWriter tests to using MockTimeline 2021-09-16 23:54:13 -07:00
Danila Fedorin
7d27b46873 Make the response of TimelineMock look like a room sync response 2021-09-16 23:53:38 -07:00
Danila Fedorin
bcfca9ad9a Make event ID function public 2021-09-16 21:53:56 -07:00
Bruno Windels
cce7606960 release v0.2.10 2021-09-16 22:43:38 +02:00
Bruno Windels
5cf8c3c7d2
Merge pull request #498 from vector-im/bwindels/fix-replies
Fix replies after releasing scroll improvements
2021-09-16 22:43:15 +02:00
Bruno Windels
41089e2806 remove leftover logging 2021-09-16 22:30:03 +02:00
Bruno Windels
c4477a81ea don't create the avatar node when we won't need it 2021-09-16 22:29:48 +02:00
Bruno Windels
f02d52ce4c with !interactive, an array of an array is not a valid Child value
why didn't this fail before?
2021-09-16 22:29:13 +02:00
Bruno Windels
bae8dc7dd7 changes should be true when replyVM is not set and we set an entry 2021-09-16 22:28:19 +02:00
Bruno Windels
ccc5aac025 release v0.2.9 2021-09-16 18:20:25 +02:00
Bruno Windels
356af3ae7c
Merge pull request #497 from vector-im/bwindels/timeline-height-fix
Fix timeline height on mobile
2021-09-16 18:19:58 +02:00
Bruno Windels
e978202f36 add min-height: 0 2021-09-16 17:48:29 +02:00
Bruno Windels
9a9b206bf5
Merge pull request #486 from vector-im/bwindels/fix-scroll-jumps
Fix scroll jumps and loading of gaps not at top of the timeline
2021-09-16 17:14:17 +02:00
Bruno Windels
a62627f6db fix lint warning 2021-09-16 16:39:17 +02:00
Bruno Windels
381a12db20 load 20 entries initially in timeline, otherwise it flickers a bit 2021-09-16 16:34:13 +02:00
Bruno Windels
898d32c6da use quotes in css url path 2021-09-16 16:34:01 +02:00
Bruno Windels
6ec2712eec remove debug logging 2021-09-16 16:33:09 +02:00
Bruno Windels
c9f79343ef remove obsolete comment 2021-09-16 16:32:59 +02:00
Bruno Windels
b1994918fe
Merge pull request #488 from vector-im/bwindels/list-and-timeline-view-to-ts
Convert ListView and TimelineView to typescript
2021-09-16 16:08:34 +02:00
Bruno Windels
a6bcfac597 rename UIView to IView 2021-09-16 15:58:48 +02:00
Bruno Windels
b71a26b04a avoid using ! in ListView 2021-09-16 15:56:57 +02:00