Danila Fedorin
|
0e6c59983f
|
Generalize BaseMappedList to allow mappers to promises
|
2021-10-03 22:18:10 -07:00 |
|
Danila Fedorin
|
e6de873b6e
|
Rename AsyncMappedList to TypeScript
|
2021-10-03 22:16:46 -07:00 |
|
Danila Fedorin
|
b148f3ca9e
|
Add type annotations to ObservableArray
|
2021-10-03 22:16:46 -07:00 |
|
Danila Fedorin
|
348a9c83f5
|
Rename ObservableArray to TypeScript
|
2021-10-03 22:16:46 -07:00 |
|
Bruno Windels
|
cc58d27122
|
the build currently does not like override for some reason
|
2021-10-01 14:07:58 +02:00 |
|
Bruno Windels
|
c1d20cb9f9
|
also call this -Path
|
2021-10-01 12:56:36 +02:00 |
|
Bruno Windels
|
d2eeaab5f5
|
get assets paths with import "asset?url" specifically for vitejs
|
2021-10-01 12:49:41 +02:00 |
|
Bruno Windels
|
aac0e74b9d
|
also export LoadStatus
|
2021-10-01 12:49:30 +02:00 |
|
Bruno Windels
|
f89d169ef3
|
provide library entry point that provides convenient reexports of the public classes
|
2021-10-01 11:30:42 +02:00 |
|
Bruno Windels
|
1c06e36c1c
|
add override keyword
|
2021-10-01 10:07:17 +02:00 |
|
Bruno Windels
|
3de3481765
|
prefer optional syntax over '| null'
|
2021-10-01 10:05:56 +02:00 |
|
Bruno Windels
|
6b50a63e95
|
missing space
|
2021-10-01 10:02:32 +02:00 |
|
Bruno Windels
|
393e2f809e
|
make subscription handle return undefined, so we can reassign optional members in one statement
|
2021-10-01 10:01:52 +02:00 |
|
Bruno Windels
|
a0f443ccc3
|
Merge pull request #521 from DanilaFe/typescript-observable
Start migrating Observable code to TypeScript.
|
2021-10-01 09:54:29 +02:00 |
|
Bruno Windels
|
e42739ec81
|
scroll room list to top when entering query first
|
2021-09-30 17:19:42 +02:00 |
|
Bruno Windels
|
89add8b684
|
fix sssskey not being migrated properly
|
2021-09-30 10:18:03 +02:00 |
|
Bruno Windels
|
d10d27c1d6
|
clear relations for room when forgetting room
|
2021-09-30 09:49:45 +02:00 |
|
Bruno Windels
|
4cebe26186
|
Merge pull request #523 from vector-im/bwindels/clear-cache-after-515
clear history cache to purge potential timeline corruption from #515
|
2021-09-30 09:41:24 +02:00 |
|
Bruno Windels
|
f8f4bb4eac
|
Merge pull request #520 from vector-im/bwindels/fix-139
Keep backup of e2ee identity in localStorage when idb gets cleared
|
2021-09-30 09:28:56 +02:00 |
|
Bruno Windels
|
42f1603d81
|
use correct prefix to remove local storage value
|
2021-09-30 09:25:35 +02:00 |
|
Bruno Windels
|
ae68264db4
|
don't use switch where single if/else works
|
2021-09-30 08:42:00 +02:00 |
|
Bruno Windels
|
ccda93cc82
|
remove leftover logging
|
2021-09-30 08:40:49 +02:00 |
|
Bruno Windels
|
3556878a1e
|
clear history cache to purge potential timeline corruption from #515
|
2021-09-30 08:37:33 +02:00 |
|
Danila Fedorin
|
c80dfb10a2
|
Add type annotations to BaseMappedList
|
2021-09-29 18:41:30 -07:00 |
|
Danila Fedorin
|
99164eb0d8
|
Rename BaseMappedList to TypeScript
|
2021-09-29 18:17:38 -07:00 |
|
Danila Fedorin
|
bf53449f66
|
Add type annotations to common
|
2021-09-29 18:13:49 -07:00 |
|
Danila Fedorin
|
e53f3d23d5
|
Rename common to TypeScript
|
2021-09-29 18:10:09 -07:00 |
|
Danila Fedorin
|
64ba656043
|
Update ListView and TimelineListView
|
2021-09-29 18:08:13 -07:00 |
|
Danila Fedorin
|
414280ada9
|
Add type annotations to BaseObservableList
|
2021-09-29 18:05:30 -07:00 |
|
Danila Fedorin
|
3952c3b969
|
Rename BaseObservableList to TypeScript
|
2021-09-29 17:46:51 -07:00 |
|
Danila Fedorin
|
ab6ce62551
|
Add type annotations to ObservableValue
|
2021-09-29 17:43:17 -07:00 |
|
Danila Fedorin
|
a7360f409e
|
Rename ObservableValue to TypeScript
|
2021-09-29 17:42:57 -07:00 |
|
Danila Fedorin
|
319027e2e3
|
Add type annotations to BaseObservable
|
2021-09-29 17:42:57 -07:00 |
|
Danila Fedorin
|
d73dea797a
|
Rename BaseObservable to TypeScript
|
2021-09-29 17:18:22 -07:00 |
|
Bruno Windels
|
e0b9a3fa50
|
create e2ee identity also when storage got cleared without backup
|
2021-09-29 20:07:42 +02:00 |
|
Bruno Windels
|
a1c66738db
|
migration to initialize & restore e2ee identity backup
|
2021-09-29 19:39:26 +02:00 |
|
Bruno Windels
|
3a064d6796
|
a IDBRequest when opening the database does not have a source
|
2021-09-29 19:21:42 +02:00 |
|
Bruno Windels
|
2ef7251079
|
move ssssKey to e2ee prefix as well so it gets backed up too
|
2021-09-29 19:21:06 +02:00 |
|
Bruno Windels
|
77bd0d3f3c
|
store e2ee session values as well in localStorage
|
2021-09-29 11:49:58 +02:00 |
|
Bruno Windels
|
004aa5d3dc
|
Merge pull request #519 from vector-im/bwindels/rickfixes
Fix immediate errors for sdk usage
|
2021-09-29 11:12:17 +02:00 |
|
Bruno Windels
|
e31d3abc97
|
fix ts errors in TimelineEventStore unit tests
|
2021-09-28 14:20:54 +02:00 |
|
Bruno Windels
|
ec2f1b9833
|
add unit tests for findExistingKeys
|
2021-09-28 14:20:21 +02:00 |
|
Bruno Windels
|
edc3a1d33c
|
convert storage mock to TS and add utility for mock raw database
|
2021-09-28 14:19:59 +02:00 |
|
Bruno Windels
|
9036b21b5c
|
don't interpret hex as decimal when decoding the key
this fixes #515 as it was causing the gap not to be closed,
because the fragment id was never equal.
|
2021-09-28 11:34:55 +02:00 |
|
Bruno Windels
|
0846fcc05d
|
add more logging during gap filling
|
2021-09-27 16:34:12 +02:00 |
|
Bruno Windels
|
f55f450850
|
fix findExistingKeys too many (existing but not requested) keys
|
2021-09-27 16:27:52 +02:00 |
|
Bruno Windels
|
6982f55cd7
|
move over word-break lines
this didn't get moved over when converting the timeline tile css to css grid
|
2021-09-24 18:42:47 +02:00 |
|
Bruno Windels
|
71bd797dd4
|
automatically position popups using a simpler algorithm
|
2021-09-24 18:28:06 +02:00 |
|
Bruno Windels
|
b75e2fe0ce
|
decode straight to EventKey object
|
2021-09-24 15:40:33 +02:00 |
|
Bruno Windels
|
0d798178b0
|
log neighbor fragment id when closing gap
|
2021-09-23 18:50:40 +02:00 |
|
Bruno Windels
|
c6ed0abfd7
|
eventIds is missing
|
2021-09-23 18:49:23 +02:00 |
|
Bruno Windels
|
e6f7f213ec
|
don't (re)link fragments in fill, close gap if overlap w linked fragment
|
2021-09-23 18:02:05 +02:00 |
|
Bruno Windels
|
45917eae1d
|
Merge pull request #494 from vector-im/DanilaFe/backfill-changes
Unit tests for GapWriter, using a new timeline mock utility
|
2021-09-23 10:15:37 +02:00 |
|
Bruno Windels
|
4b7cb6da9e
|
make backfill limit explicit
|
2021-09-23 10:10:22 +02:00 |
|
Bruno Windels
|
dd71fdbe08
|
add comment
|
2021-09-23 10:04:58 +02:00 |
|
Bruno Windels
|
498c00fe3c
|
no need for try catch here as we already catch in getKeys
|
2021-09-22 10:38:29 +02:00 |
|
Bruno Windels
|
ac5a4c2bc6
|
pass log item everywhere to tryInsert
|
2021-09-22 10:33:40 +02:00 |
|
Bruno Windels
|
b58e10521f
|
don't log tryInsert failures anymore as everything is logged in Store
|
2021-09-22 10:23:28 +02:00 |
|
Bruno Windels
|
1963635dd7
|
also log index keys for a value when write fails in Store
|
2021-09-22 10:22:52 +02:00 |
|
Bruno Windels
|
a19d93dbef
|
don't swallow anything that isn't a request error
|
2021-09-22 09:36:26 +02:00 |
|
Bruno Windels
|
704d7b32da
|
add tests
|
2021-09-21 21:04:29 +02:00 |
|
Bruno Windels
|
6cded5319a
|
change timelineEventStore.insert to tryInsert
|
2021-09-21 21:04:10 +02:00 |
|
Bruno Windels
|
12add19c31
|
add Store.tryAdd, which prevent abort on ConstraintError
|
2021-09-21 21:03:29 +02:00 |
|
Bruno Windels
|
0d486a14f6
|
add the logger property to the null logger as well, forgot this before
|
2021-09-21 21:01:35 +02:00 |
|
Danila Fedorin
|
92dcc6c980
|
Remove duplicated lines
|
2021-09-21 09:39:09 -07:00 |
|
Bruno Windels
|
b8548afb71
|
export temporary vm typ def
|
2021-09-21 10:41:01 +02:00 |
|
Bruno Windels
|
07c6bf7055
|
Merge pull request #503 from vector-im/bwindels/fix-reactions-vm-null
use mapped value rather than reading parent vm again
|
2021-09-21 10:09:05 +02:00 |
|
Bruno Windels
|
a020febf8d
|
use mapped value rather than reading parent vm again
|
2021-09-21 10:02:17 +02:00 |
|
Danila Fedorin
|
a3a743881d
|
Make test adjustments requested in PR.
|
2021-09-20 19:37:39 -07:00 |
|
Danila Fedorin
|
50c8b995c3
|
Undo GapWriter algorithm changes
|
2021-09-20 18:41:01 -07:00 |
|
Danila Fedorin
|
9f6c48cf0c
|
Merge branch 'master' into DanilaFe/backfill-changes
|
2021-09-17 15:19:16 -07:00 |
|
Danila Fedorin
|
6d84cc0a81
|
Fix util import
|
2021-09-17 14:51:20 -07:00 |
|
Danila Fedorin
|
820b048272
|
Finish up the more difficult tests
|
2021-09-17 10:57:51 -07: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
|
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
|
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 |
|
Bruno Windels
|
81ec8dca8c
|
improve typing in utils
|
2021-09-16 15:51:45 +02:00 |
|
Bruno Windels
|
d9ddeaf107
|
fix TS errors in TimelineView
|
2021-09-16 15:49:03 +02:00 |
|
Bruno Windels
|
00aa40ea7b
|
copy Daniel's conversion of TemplateView to TypeScript from microui
with some minor type adjustments
|
2021-09-16 15:46:02 +02:00 |
|
Bruno Windels
|
ea4d833a43
|
reuse ViewNode in Child type
|
2021-09-16 15:39:25 +02:00 |
|
Bruno Windels
|
040efa970c
|
make className binding always have a value (may be undefined through T)
|
2021-09-16 15:39:17 +02:00 |
|
Bruno Windels
|
68fb093c9e
|
don't require mount args in mountView, like in UIView interface
|
2021-09-16 15:23:48 +02:00 |
|
Bruno Windels
|
060f4aa297
|
change extension in preparation for TS conversion
|
2021-09-16 14:02:36 +02:00 |
|
Bruno Windels
|
65f69a121b
|
copy Daniel's conversion of BaseUpdateView to TypeScript from microui
|
2021-09-16 14:01:33 +02:00 |
|
Bruno Windels
|
69672dd99c
|
copy Daniel's conversion of html.js to TypeScript from microui
|
2021-09-16 10:45:06 +02:00 |
|
Bruno Windels
|
cce8207870
|
copy Daniel's conversion of EventEmitter to TypeScript from microui
|
2021-09-16 10:23:03 +02:00 |
|
Danila Fedorin
|
bbd174cd67
|
Add a class to mock timeline requests
|
2021-09-15 16:15:18 -07:00 |
|
Bruno Windels
|
2396a84c99
|
leave out svg editor markup from icon
|
2021-09-15 18:39:04 +02:00 |
|
Bruno Windels
|
e4101ece65
|
add "jump down" button in timeline
|
2021-09-15 18:30:08 +02:00 |
|
Bruno Windels
|
1df12b8c89
|
only allow pixel gaps of < 1px for stick to bottom to prevent eleweb bug
https://github.com/matrix-org/matrix-react-sdk/pull/6751
|
2021-09-15 17:23:53 +02:00 |
|
Bruno Windels
|
2c415e37e7
|
where ResizeObserver is support, restore anchored node on resize
|
2021-09-15 17:23:28 +02:00 |
|
Bruno Windels
|
04edff29cf
|
give more top padding to gaps that appear in the middle of the timeline
|
2021-09-15 15:57:31 +02: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 |
|
Bruno Windels
|
247d6a2148
|
add comments
|
2021-09-14 17:01:30 +02: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
|
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 |
|
Bruno Windels
|
e105bc4237
|
fix lint warnings
|
2021-08-24 15:31:18 +02:00 |
|
Bruno Windels
|
54ac5a96ca
|
rename service-worker.js back to sw.js to unbreak updating
|
2021-08-23 20:23:38 +02:00 |
|
Bruno Windels
|
65bd892d8f
|
better naming
|
2021-08-23 20:09:45 +02:00 |
|
Bruno Windels
|
d31e442c16
|
better text
|
2021-08-23 20:06:52 +02:00 |
|
Bruno Windels
|
d1412e1f42
|
don't retry with www.{host}, as it's a minor security issue
if www.host gets hacked (e.g. a bad wordpress plugin), it could spread
to the matrix server running on a different host.
|
2021-08-23 20:05:42 +02:00 |
|
Bruno Windels
|
160ae0b767
|
adjust to AbortableOperation api change
|
2021-08-23 19:53:52 +02:00 |
|
Bruno Windels
|
59605a2a57
|
don't fail login on missing cors on well-known
|
2021-08-23 19:53:33 +02:00 |
|
Bruno Windels
|
c0d3c950b0
|
show the homeserver after lookup
|
2021-08-23 19:29:17 +02:00 |
|
Bruno Windels
|
3dbffdb417
|
don't requery the same homeserver we just did
|
2021-08-23 19:28:43 +02:00 |
|
Bruno Windels
|
e0d53e57ba
|
clear everything when typing in homeserver field
as it's not relevant anymore
|
2021-08-23 19:28:21 +02:00 |
|
Bruno Windels
|
e944dc5cac
|
decrease typing timeout to 1s
|
2021-08-23 19:27:24 +02:00 |
|
Bruno Windels
|
c7b47bb8d6
|
fix homeServer misspelling to homeserver across the project
|
2021-08-23 19:26:39 +02:00 |
|
Bruno Windels
|
3a5b7c1d0e
|
support well-known lookup
|
2021-08-23 18:47:36 +02:00 |
|
Bruno Windels
|
9760a4540e
|
remove debug log
|
2021-08-23 16:04:00 +02:00 |
|
Bruno Windels
|
993bc36096
|
dont query 2nd time after losing focus
|
2021-08-23 16:01:39 +02:00 |
|
Bruno Windels
|
d1301fa642
|
input is not needed in the name here
|
2021-08-23 15:57:16 +02:00 |
|
Bruno Windels
|
8eab9ab28b
|
add 2s timeout on input of homeserver to also query the homeserver, in addition to change event
|
2021-08-23 15:54:40 +02:00 |
|
Bruno Windels
|
577c3168e6
|
make queryLogin abortable
|
2021-08-23 15:54:06 +02:00 |
|
Bruno Windels
|
3b693c5b02
|
Merge pull request #453 from MidhunSureshR/sso-login
[SSO] - [PR 4] - SSO/Token login functionality
|
2021-08-23 11:38:48 +00:00 |
|
RMidhunSuresh
|
ef4db4abab
|
Make navigation simpler
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 17:00:41 +05:30 |
|
RMidhunSuresh
|
c9319c7c38
|
Catch any error from queryLogin
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 16:58:54 +05:30 |
|
RMidhunSuresh
|
fc169af10f
|
Rename toggle to set
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 16:09:40 +05:30 |
|
RMidhunSuresh
|
b0db7e0344
|
More simpler navigation
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:55:07 +05:30 |
|
RMidhunSuresh
|
e80667c935
|
Remove duplicate style
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:50:22 +05:30 |
|
RMidhunSuresh
|
69478b81b2
|
Fix toggleBusy
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:48:29 +05:30 |
|
RMidhunSuresh
|
ecfdc314d5
|
Do not set error message to empty string
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:28:44 +05:30 |
|
RMidhunSuresh
|
c9fbafb909
|
Also check LoadStatus.Error
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:12:40 +05:30 |
|
RMidhunSuresh
|
84fd286140
|
Split logintoken into two words
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-23 15:06:16 +05:30 |
|
Danila Fedorin
|
e610087a79
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
|
2021-08-20 12:51:23 -07:00 |
|
Danila Fedorin
|
a2ff02e6c0
|
Try using an enum for store names.
|
2021-08-20 12:33:06 -07:00 |
|
Danila Fedorin
|
69953e5277
|
Migrate TimelineRelationStore.js to TypeScript
|
2021-08-20 11:23:27 -07:00 |
|
Danila Fedorin
|
e3b1d034f0
|
Migrate TimelineEventStore.js to TypeScript
|
2021-08-20 11:23:21 -07:00 |
|
Danila Fedorin
|
7de704ef86
|
Migrate InviteStore.js to TypeScript.
|
2021-08-20 11:23:14 -07:00 |
|
Danila Fedorin
|
7c56ac7746
|
Migrate RoomMemberStore.js to TypeScript
|
2021-08-20 11:23:08 -07:00 |
|
Danila Fedorin
|
38a38e8287
|
Migrate common.ts
|
2021-08-20 11:23:01 -07:00 |
|
Danila Fedorin
|
e284224cc8
|
Migrate RoomSummaryStore.js to TypeScript.
|
2021-08-20 11:22:53 -07:00 |
|
Danila Fedorin
|
144e391c82
|
Migrate SessionStore.js to TypeScript.
|
2021-08-20 11:22:45 -07:00 |
|
Danila Fedorin
|
be4ad66b12
|
Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2-fix
|
2021-08-20 11:21:03 -07:00 |
|
RMidhunSuresh
|
04806a1425
|
Convert link to button
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 23:16:03 +05:30 |
|
Danila Fedorin
|
0b8acb51a4
|
Switch errors to using nulls
|
2021-08-20 10:41:15 -07:00 |
|
Danila Fedorin
|
50b7a8a3fd
|
Add a comment explaining CursorIterator
|
2021-08-20 10:34:06 -07:00 |
|
RMidhunSuresh
|
d47e126370
|
add missing emit
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 23:03:51 +05:30 |
|
RMidhunSuresh
|
0e6139d5e3
|
Use homeserver from login method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 23:02:06 +05:30 |
|
RMidhunSuresh
|
94ba93acb5
|
Add explaining comment
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 22:57:13 +05:30 |
|
RMidhunSuresh
|
0630452571
|
No need to observe
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 22:53:15 +05:30 |
|
Danila Fedorin
|
94ff76711c
|
Use 'in' to be more idiomatic
|
2021-08-20 10:04:22 -07:00 |
|
RMidhunSuresh
|
a5985cba2a
|
Add spinner
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 22:18:24 +05:30 |
|
RMidhunSuresh
|
82067ca6f5
|
No need to pass showError
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 21:43:42 +05:30 |
|
RMidhunSuresh
|
55da58893b
|
Red + bold error
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 21:41:42 +05:30 |
|
RMidhunSuresh
|
a2677a6400
|
Separate errors for each vm
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 21:22:12 +05:30 |
|
RMidhunSuresh
|
355468b637
|
Internationalize + add back old message
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:36:33 +05:30 |
|
RMidhunSuresh
|
ff8417dfe2
|
Set busy state from login vm
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:31:22 +05:30 |
|
RMidhunSuresh
|
784b06d500
|
Fix emit for isBusy
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:12:25 +05:30 |
|
RMidhunSuresh
|
0e7a9e224c
|
Remove unwanted if
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:10:31 +05:30 |
|
RMidhunSuresh
|
5ca732341a
|
Rename defaultHomeserver to homeserver
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:09:12 +05:30 |
|
RMidhunSuresh
|
c650b35831
|
resetStatus from within startLogin
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 20:05:36 +05:30 |
|
RMidhunSuresh
|
9482998b15
|
Internationalize and remove dash
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 19:08:47 +05:30 |
|
RMidhunSuresh
|
2468bc3e9f
|
Remove homeserver prop
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 15:47:30 +05:30 |
|
RMidhunSuresh
|
dadeb7f3e5
|
Do not override childOptions
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 15:42:43 +05:30 |
|
RMidhunSuresh
|
bdc860eb79
|
Refactor to pull loadvm into login vm
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-20 15:19:42 +05:30 |
|
Danila Fedorin
|
19bababa68
|
Use method syntax in QueryTarget.
|
2021-08-19 17:40:10 -07:00 |
|
Danila Fedorin
|
704a8d99c7
|
Add missing return types to QueryTarget
|
2021-08-19 17:39:53 -07:00 |
|
RMidhunSuresh
|
80ea48e8a1
|
Move input into t.if
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 21:43:44 +05:30 |
|
RMidhunSuresh
|
5ab405fc30
|
Move back-button to login view
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 21:37:26 +05:30 |
|
RMidhunSuresh
|
3af2ae3bdd
|
make method private
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
ed278e3e5a
|
Remove unwanted check
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
2d842c7174
|
rename ssoEndpointLink to createSSORedirectURL
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
daf7af17b1
|
Move logic to vm
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
068fba3616
|
Inline method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
738603e890
|
Rename start to createViewModels
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:50:00 +05:30 |
|
RMidhunSuresh
|
17f1d6b16a
|
Remove defaultHomeServer prop
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-19 20:49:54 +05:30 |
|
RMidhunSuresh
|
10a6aca477
|
Move homeserver input into LoginView
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:05:25 +05:30 |
|
RMidhunSuresh
|
13cb8979ac
|
Check correct login method early
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:05:25 +05:30 |
|
RMidhunSuresh
|
83f4095d88
|
rename queryLogin to getLoginFlows
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:05:15 +05:30 |
|
RMidhunSuresh
|
d2c94b0d3e
|
Give argument better name
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
db3fd3d1ae
|
Fix test
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
7b9ec5516a
|
Move normalizeHomeserver into session container
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
c4e7dc3b5a
|
Split SSOLoginViewModel
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
4b72b64a2e
|
Implement SSOLoginHelper
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
f8b0ef052f
|
Give sso homeserver storage key a better name
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|
RMidhunSuresh
|
98f8f04c74
|
Implement SSO
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
|
2021-08-18 22:04:33 +05:30 |
|