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
|
feb0cf7e39
|
fix viewport changing width when timeline starts filling the viewport
otherwise centered tiles like announcementview jump a bit vertically
|
2021-09-13 15:40:15 +02:00 |
|
Bruno Windels
|
906e5886e1
|
fix tiny jump when timeline starts filling viewport
|
2021-09-13 15:39:56 +02:00 |
|
Bruno Windels
|
ecccadb77e
|
avoid requestIdleCallback as it is not supported on Safari and IE11
|
2021-09-13 14:53:34 +02:00 |
|
Bruno Windels
|
8858cffc55
|
fallback from scrollBy() to setting scrollTop on IE11
|
2021-09-13 14:53:08 +02:00 |
|
Bruno Windels
|
02b8b37b4c
|
disable native scroll anchoring as it interferes with our impl
|
2021-09-13 13:11:25 +02:00 |
|
Bruno Windels
|
5c40b75eab
|
don't override newly requested ranges when retrying loadattop
|
2021-09-10 15:25:19 +02:00 |
|
Bruno Windels
|
9411e6f065
|
WIP
|
2021-09-10 14:47:05 +02:00 |
|
Bruno Windels
|
98cc1e2715
|
don't try to load more when end of timeline reached
|
2021-09-10 14:17:40 +02:00 |
|
Bruno Windels
|
fe4bb5db40
|
remove comment
|
2021-09-09 17:15:28 +02:00 |
|
Bruno Windels
|
d1242c4b67
|
make gaps taller
|
2021-09-09 17:15:06 +02:00 |
|
Bruno Windels
|
d0f122a2be
|
WIP-ish, batch visible range requests, allow setting empty ranges and...
don't try to notify when the tile becomes invisible again,
we don't need it currently
|
2021-09-09 17:14:16 +02:00 |
|
Bruno Windels
|
98678b991b
|
no need to store visible state on gap tile & don't fill if edge reached
|
2021-09-08 16:39:46 +02:00 |
|
Bruno Windels
|
ab67ac00b1
|
restore bottom of timeline initially after attach to DOM
this will also load more items if the viewport isn't filled
|
2021-09-08 12:06:17 +02:00 |
|
Bruno Windels
|
e89f60bac0
|
fill gap tiles when they become visible
|
2021-09-08 12:05:59 +02:00 |
|
Bruno Windels
|
7578bfa3d9
|
let tiles know when they become visible & load more tiles close to top
|
2021-09-08 12:05:19 +02:00 |
|
Bruno Windels
|
f4b4638ea8
|
actually, pass in just the tile instances for expressing the range
|
2021-09-07 19:10:53 +02:00 |
|
Bruno Windels
|
b3cd2a0e03
|
express the visible range with EventKeys rather than list indices
This is less ambiguous in case the DOM and the ObservableList would be
out of sync.
|
2021-09-07 17:48:49 +02:00 |
|
Bruno Windels
|
c78a83d398
|
restore most bottom tile in VP on any list change
and tell view model visible range so it can load more or fill gaps, ...
|
2021-09-07 15:17:27 +02: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 |
|
Bruno Windels
|
ad4ec5f04c
|
convert TimelineView to typescript
|
2021-09-06 17:51:32 +02:00 |
|
Bruno Windels
|
632d29795a
|
convert ListView to typescript
|
2021-09-06 17:12:14 +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
|
c6b020a9e7
|
Rename TimelineList to TimelineView for consistency
|
2021-09-06 13:31:43 +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
|
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 |
|
Bruno Windels
|
6c3a64f020
|
put switch button below input so it looks less like the big green link is related to the first paragraph
|
2021-09-01 15:44:14 +02:00 |
|
Bruno Windels
|
27db00ab98
|
Merge pull request #484 from vector-im/bwindels/fix-483
Ignore redacting reactions on already redacted events
|
2021-09-01 14:23:13 +02:00 |
|
Bruno Windels
|
6cec583661
|
fix #483
|
2021-09-01 14:21:21 +02:00 |
|
Danila Fedorin
|
5b9fd5de94
|
Import BaseLogger instead of explicitly defining 'any' type
|
2021-08-31 16:01:13 -07:00 |
|
Danila Fedorin
|
78fb8fdadf
|
Make export types more precise
|
2021-08-31 15:59:50 -07:00 |
|
Danila Fedorin
|
2262e6be30
|
Use store name enum for saving stores
|
2021-08-31 15:44:03 -07:00 |
|
Danila Fedorin
|
de3807f690
|
Fix IDBKeyRange type
|
2021-08-31 15:35:01 -07:00 |
|
Danila Fedorin
|
4eabb7c074
|
Fix newly emerging type errors in schema
|
2021-08-31 15:32:33 -07:00 |
|
Danila Fedorin
|
7f8089eaff
|
Merge branch 'snowpack-ts-storage-3' into snowpack-ts-storage-4
|
2021-08-31 15:26:26 -07:00 |
|
Danila Fedorin
|
f34ee53a12
|
Avoid casting to any when a more specific type is possible
|
2021-08-31 15:14:21 -07:00 |
|
Danila Fedorin
|
bef02d238f
|
Split keys out of stored data types
|
2021-08-31 15:12:09 -07:00 |
|
Danila Fedorin
|
f5943ced97
|
Remove IDBValidKey references
|
2021-08-31 14:48:38 -07:00 |
|
Danila Fedorin
|
1fcc147da7
|
Add type to the IDBKeyRange field
|
2021-08-31 12:16:16 -07:00 |
|
Danila Fedorin
|
056c7d40eb
|
Rename RoomEvent to TimelineEvent
|
2021-08-31 12:10:36 -07:00 |
|
Danila Fedorin
|
16d3ed579b
|
Reduce IDBValidKey returns to the public API
|
2021-08-31 11:47:54 -07:00 |
|
Danila Fedorin
|
ce20d40ff7
|
Revert the return-promise change
|
2021-08-31 11:31:17 -07:00 |
|
Danila Fedorin
|
eb3f5f1ec2
|
Merge branch 'master' into snowpack-ts-storage-2
|
2021-08-31 11:13:10 -07:00 |
|
J. Ryan Stinnett
|
3e5cc07440
|
Move check to fingerprintKey
|
2021-08-31 17:14:14 +01:00 |
|
J. Ryan Stinnett
|
284ec8a74f
|
Check for null keys in settings view model
The keys to format in the settings view model might be null. This avoid crashing
the UI by testing for this case.
|
2021-08-31 16:11:33 +01:00 |
|
Bruno Windels
|
995ed23b3e
|
tell TS we're certain to have a txn
|
2021-08-31 08:43:39 +02:00 |
|
Bruno Windels
|
3d66d71c97
|
fix conflict
|
2021-08-31 08:39:12 +02:00 |
|
Bruno Windels
|
f466266a5f
|
bring back extra caution
|
2021-08-31 08:16:37 +02:00 |
|
Bruno Windels
|
3ded5b20d3
|
dedupe some code here
|
2021-08-31 08:16:27 +02:00 |
|
Bruno Windels
|
7fb5412176
|
keep comment where it was
|
2021-08-30 15:12:25 +02:00 |
|
Bruno Windels
|
0d6ae19d99
|
use same code to add room to identity in migration as in device tracker
|
2021-08-30 15:05:57 +02:00 |
|
Bruno Windels
|
a437332482
|
whitespace
|
2021-08-30 14:52:20 +02:00 |
|
Bruno Windels
|
0ca46bf2ac
|
don't log here as we log at a lower level, and don't fail on abort
|
2021-08-30 14:52:04 +02:00 |
|
Bruno Windels
|
ddb6753f8d
|
fix refactor error
|
2021-08-27 20:05:53 +02:00 |
|
Bruno Windels
|
6a6762f036
|
ensure memberwriter works with undefined for state/timeline events array
|
2021-08-27 20:05:34 +02:00 |
|
Bruno Windels
|
8e6bd6a7a1
|
add missing room ids to identities for tracked rooms & clear outbound session
|
2021-08-27 19:39:24 +02:00 |
|
Bruno Windels
|
fa555bedf0
|
log storage migration
|
2021-08-27 19:35:11 +02:00 |
|
Bruno Windels
|
0c05e97465
|
abort upgrade txn on error
|
2021-08-27 19:07:27 +02:00 |
|
Danila Fedorin
|
9252f3bede
|
Migrate StorageFactory to TypeScript
|
2021-08-27 09:30:16 -07:00 |
|
Danila Fedorin
|
5db9d1493a
|
Migrate export to TypeScript
|
2021-08-27 09:30:16 -07:00 |
|
Danila Fedorin
|
04e39ef9e2
|
Migrate quirks to TypeScript
|
2021-08-27 09:30:16 -07:00 |
|
Danila Fedorin
|
34b173a057
|
Migrate schema to TypeScript
|
2021-08-27 09:30:16 -07:00 |
|
Danila Fedorin
|
eae820f91b
|
Migrate Storage to TypeScript
|
2021-08-27 09:30:15 -07:00 |
|
Danila Fedorin
|
5f3c9cda97
|
Migrate Transaction to TypeScript
|
2021-08-27 09:30:15 -07:00 |
|
Danila Fedorin
|
100aee9dcc
|
Migrate InboundGroupSessionStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
914abda7c9
|
Migrate OlmSessionStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
3cd0d1f423
|
Migrate DeviceIdentityStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
8d44df83c4
|
Migrate UserIdentityStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
b46ae152d6
|
Migrate PendingEventStore.js to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
fad6d63c14
|
Migrate TimelineFragmentStore.js to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
742ab28099
|
Migrate AccountDataStore.js to TypeScript.
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
77f75fd968
|
Migrate OperationStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
8c966627bc
|
Migrate GroupSessionDecryptionStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
33d94b9497
|
Migrate OutboundGroupSessionStore to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
5d4454734a
|
Migrate RoomStateStore.js to TypeScript
|
2021-08-27 09:30:10 -07:00 |
|
Danila Fedorin
|
af70269169
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
|
2021-08-27 09:29:53 -07:00 |
|
Danila Fedorin
|
4c4687a05f
|
Avoid unsafe (and error-prone) cast
|
2021-08-27 09:29:02 -07:00 |
|
Bruno Windels
|
a61f052fe8
|
fix lint
|
2021-08-27 17:23:32 +02:00 |
|
Bruno Windels
|
826de7e9cb
|
Write all members of a sync in one go
so state member events written but not causing a memberChange.hasJoined
don't prevent timeline member events for the same user from doing so
|
2021-08-27 17:11:29 +02:00 |
|
Danila Fedorin
|
b081aa171c
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
|
2021-08-26 17:08:00 -07:00 |
|
Danila Fedorin
|
904a2cbe74
|
Merge branch 'master' into snowpack-ts-storage-1
|
2021-08-26 17:07:25 -07:00 |
|
Danila Fedorin
|
a95704528f
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
|
2021-08-26 17:01:23 -07:00 |
|
Danila Fedorin
|
b7d232d56d
|
Remove unnecessary cast and restrict constructor parameter type
|
2021-08-26 16:56:03 -07:00 |
|
Bruno Windels
|
d0c1ddb51b
|
add failing test
|
2021-08-26 15:18:31 +02:00 |
|
Danila Fedorin
|
6d6821319e
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
|
2021-08-24 11:19:36 -07:00 |
|
Danila Fedorin
|
1707df71df
|
Try to reduce repitition in CursorIterator
|
2021-08-24 11:11:30 -07:00 |
|
Bruno Windels
|
cb9606a87b
|
remove dead code for incomplete memory store
|
2021-08-24 15:33:41 +02:00 |
|