Commit graph

3012 commits

Author SHA1 Message Date
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
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
Danila Fedorin
bbd174cd67 Add a class to mock timeline requests 2021-09-15 16:15:18 -07:00
Danila Fedorin
d2b604e1dd Stop using at to fix tests. 2021-09-14 15:57:32 -07:00
Danila Fedorin
df273c5e2c Store more events from backfill 2021-09-14 15:40:15 -07:00
Danila Fedorin
b2b5690739 Add more tests 2021-09-14 13:54:14 -07:00
Danila Fedorin
f8117b6f98 Lift transaction property to QueryTarget 2021-09-14 11:18:24 -07:00
Danila Fedorin
41e568f783 Add more tests and extract common test code 2021-09-14 11:15:13 -07:00
Danila Fedorin
31577cd496 Draft first two tests 2021-09-14 10:24:18 -07:00
Danila Fedorin
b3df37b0bc Add the beginning of a tests function for GapWriter 2021-09-13 17:01:32 -07:00
Danila Fedorin
713f675f3a Mock IDBKeyRange, too 2021-09-13 17:00:49 -07:00
Danila Fedorin
71694787cd Add an IDBFactory mock parameter 2021-09-13 16:55:55 -07:00
Bruno Windels
44ea65dd3e
Merge pull request #458 from MidhunSureshR/fix-457
Opening member-details panel should not open/close grid view
2021-09-07 12:16:24 +02:00
RMidhunSuresh
df74d0c814 Remove array from logic
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 17:41:36 +05:30
Bruno Windels
9592d286c2
Merge pull request #460 from vector-im/bwindels/ts-eventkey-direction
Convert EventKey & Direction to typescript + some ts tidbits
2021-09-06 13:11:54 +02:00
Bruno Windels
5953cdf0cc turns out we do write these 2021-09-06 13:10:36 +02:00
Bruno Windels
35f8c40a0c fix rebase mistake 2021-09-06 13:09:16 +02:00
Bruno Windels
ae5a4f0051 start doc with additional steps for migration
once the base migration is done
2021-09-06 13:07:47 +02:00
Bruno Windels
886a60c12a set target version of TS to ES2020 2021-09-06 13:07:47 +02:00
Bruno Windels
7cb686ce8e convert EventKey to ts 2021-09-06 13:07:41 +02:00
Bruno Windels
85c8415acd convert Direction to ts 2021-09-06 13:06:20 +02:00
Bruno Windels
ed082c9869
Merge pull request #475 from vector-im/snowpack-ts-storage-4
Snowpack + Typescript conversion (Part 4)
2021-09-06 13:05:08 +02:00
Bruno Windels
36da02c14e use generics here to say return type of method is same as callback 2021-09-06 13:01:32 +02:00
Bruno Windels
360b4db17a
Merge pull request #474 from vector-im/snowpack-ts-storage-3
Snowpack + Typescript conversion (Part 3)
2021-09-06 12:55:46 +02:00
Bruno Windels
ad28f1f9a3 split out Entry type for TimelineEventStore 2021-09-06 12:51:28 +02:00
Bruno Windels
cd98cac4e4 split out Entry type for OlmSessionStore 2021-09-06 12:46:44 +02:00
Bruno Windels
5d8e66a3f3
Merge pull request #473 from vector-im/snowpack-ts-storage-2
Snowpack + Typescript conversion (Part 2)
2021-09-06 11:06:46 +02:00
RMidhunSuresh
4f4bc8f805 Add test
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 14:20:33 +05:30
RMidhunSuresh
a54413625e No need to pass in roomId
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 12:59:30 +05:30
RMidhunSuresh
f841efeef4 Make check more generic
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
2021-09-06 12:41:17 +05:30
Bruno Windels
a0d66a71f7
Merge pull request #485 from vector-im/bwindels/make-ssss-key-settings-less-confusing
put switch button below input so it looks less like the big green lin…
2021-09-01 15:46:46 +02:00