Šimon Brandner
6e5326f9c8
Add custom notification handling for MSC3401 call events ( #2720 )
2022-10-06 16:40:30 +02:00
Germain
21a6f61b7b
Add support for unread thread notifications ( #2726 )
2022-10-05 10:37:45 +01:00
Germain
516f52c5a4
Support to remotely toggle push notifications ( #2686 )
2022-09-22 08:37:54 +00:00
Kerry
37187ef347
Test typescriptification - room-member and room-state ( #2601 )
...
* renamed: spec/MockStorageApi.js -> spec/MockStorageApi.ts
* renamed: spec/olm-loader.js -> spec/olm-loader.t
* renamed: spec/unit/room-state.spec.js -> spec/unit/room-state.spec.ts
* ts fixes in room-state.spec
* renamed: spec/unit/room-member.spec.js -> spec/unit/room-member.spec.ts
* ts fixes in room-member.spec
* strict mode fixes for MockStorageApi
* strict ts fixes in room-state
* strict errors
2022-09-05 10:38:05 +02:00
Michael Telatynski
b789cc5933
Refactor Sync and fix initialSyncLimit ( #2587 )
...
* Small tidy-up to sync.ts
* Convert doSync into a while loop
* Apply `initialSyncLimit` only to initial syncs
* Convert matrix-client-syncing spec to TS
* Add tests around initial sync filtering
* Switch confusing filterId field for `filter`
* Tweak doSync error control flow
* Fix error control flow intricacies
* use includes
* Add tests
* Fix some strict mode errors
* Fix more strict mode errors
* Fix some strict mode errors
2022-08-23 16:25:54 +01:00
Faye Duxovni
45db39ec88
Rewrite megolm integration tests with async arrow functions ( #2519 )
2022-07-21 10:41:46 +00:00
Faye Duxovni
3935152d08
Properly re-insert room ID in bundled thread relation messages from sync ( #2505 )
...
Events returned by the `/sync` endpoint, including relations bundled with other events, may have their `room_id`s stripped out. This causes decryption errors if the IDs aren't repopulated.
Fixes vector-im/element-web#22094 .
2022-07-08 22:43:38 +00:00
Šimon Brandner
685cab38b9
Improve VoIP integrations testing ( #2495 )
2022-07-07 08:38:17 +02:00
Kerry
9b843daf2f
Live location share - add start time leniency (PSF-1081) ( #2465 )
...
* remove some of the confusing time travel in beacon.spec
* test cases
* add start time leniency to beacon liveness check
2022-06-16 15:00:45 +02:00
Michael Telatynski
ab588f0e51
Fix issue with getEventTimeline returning undefined for thread roots in main timeline ( #2454 )
...
* Fix test message utils using overload
* Tweak existing tests
* Add test around `MatrixClient::getEventTimeline`
* Fix test to actually exercise the faulty behaviour
* Extract timelineSet thread belongs logic and test it
* tweak method name
2022-06-15 14:46:08 +00:00
Michael Weimann
ad030bfc1f
Update relations after every decryption attempt ( #2387 )
...
* Update relations after every decryption attempt
If an event is encrypted the aggregation cannot pick up the relation types.
Before this change there was exactly one aggregation retry after decryption.
If the events are being decrypted afterwards (for example on restore
from key backup) the aggregation was not aware of that.
This change adds relation updates after every decryption event if there
has been a decryption error.
Signed-off-by: Michael Weimann <michaelw@matrix.org >
2022-05-25 08:39:18 +02:00
Michael Telatynski
286500e335
Fix issues around echo & redaction handling in threads ( #2286 )
2022-04-11 08:58:13 +01:00
Kerry
781fdf4fdc
Live location sharing - update beacon_info implementation to latest MSC ( #2281 )
...
* remove M_BEACON_INFO_VARIABLE
Signed-off-by: Kerry Archibald <kerrya@element.io >
* create beacon_info events with non-variable event type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove isBeaconInfoEventType
Signed-off-by: Kerry Archibald <kerrya@element.io >
* refer to msc3673 instead of msc3489
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove event type suffix
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update beacon identifier to use state key
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix beacon spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix room-state tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* dont allow update to older beacon event
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* unnest beacon_info content
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* check redaction event id
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-04-08 10:50:06 +02:00
Michael Telatynski
dde4285cdf
Fix handling of threaded messages around edits & echoes ( #2267 )
2022-04-07 13:46:50 +01:00
Michael Telatynski
d6f1c6cfdc
Fix thread & main timeline partitioning logic ( #2264 )
2022-03-31 13:57:37 +01:00
Michael Telatynski
c541b3f1ce
Fix issues with duplicated MatrixEvent objects around threads ( #2256 )
2022-03-24 12:24:19 +00:00
Kerry
a6fe8797f0
Use beacon info event type as beacon identifier ( #2251 )
...
* use beacon info event type as beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test cases
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-22 11:14:43 +01:00
Kerry
18943d6519
emit aggregate room beacon liveness ( #2241 )
...
* emit aggregate room beacon liveness
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy and comment
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add export for models/beacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add owner and roomId
Signed-off-by: Kerry Archibald <kerrya@element.io >
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-16 08:54:13 +00:00
Kerry
c2fdb4478d
Live location sharing - create m.beacon_info events ( #2238 )
...
* add content helpers
Signed-off-by: Kerry Archibald <kerrya@element.io >
* stubbed Beacon class
Signed-off-by: Kerry Archibald <kerrya@element.io >
* beacon test utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon test utils
Signed-off-by: Kerry Archibald <kerrya@element.io >
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacons to room state
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* unit test RoomState.setBeacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-15 10:31:32 +01:00
Kerry
57d71ccd0f
Move test-utils into a directory ( #2236 )
...
* move test-utils.js into directory
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix imports
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-14 14:55:11 +01:00