Kerry
d064d82fcc
Beacon event types from MSC3489 ( #2230 )
...
* ASSET_NODE_TYPE -> M_ASSET
Signed-off-by: Kerry Archibald <kerrya@element.io >
* export const M_TIMESTAMP = new UnstableValue("m.ts", "org.matrix.msc3488.ts");
Signed-off-by: Kerry Archibald <kerrya@element.io >
* LOCATION_EVENT_TYPE -> M_LOCATION
Signed-off-by: Kerry Archibald <kerrya@element.io >
* extensible event types for location
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add locationevent parsing helpers
Signed-off-by: Kerry Archibald <kerrya@element.io >
* rename
Signed-off-by: Kerry Archibald <kerrya@element.io >
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io >
* revert makelocationcontent signature
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add beacon event types
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add variable* to type and comment
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add content helper functions for beacon_info and beacon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add m.beacon_info.live from msc3672
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-14 12:13:28 +00:00
Hubert Chathi
17f3920ddd
Send and handle stable name for withheld codes ( #2232 )
...
since MSC2399 is finished FCP and it's in the spec, we can use the stable name
now
2022-03-11 16:21:06 -05:00
Germain
9fc8048c30
Fix incorrect toJSON for filter-component ( #2231 )
2022-03-11 10:46:18 +00:00
Germain
9058dbf289
Switch to using stable values for Threads ( #2228 )
2022-03-11 09:04:17 +00:00
Kerry
e16e7bc098
Location event helper functions ( #2229 )
...
* ASSET_NODE_TYPE -> M_ASSET
Signed-off-by: Kerry Archibald <kerrya@element.io >
* export const M_TIMESTAMP = new UnstableValue("m.ts", "org.matrix.msc3488.ts");
Signed-off-by: Kerry Archibald <kerrya@element.io >
* LOCATION_EVENT_TYPE -> M_LOCATION
Signed-off-by: Kerry Archibald <kerrya@element.io >
* extensible event types for location
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add locationevent parsing helpers
Signed-off-by: Kerry Archibald <kerrya@element.io >
* rename
Signed-off-by: Kerry Archibald <kerrya@element.io >
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io >
* revert makelocationcontent signature
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-10 18:40:13 +01:00
Germain
dbcd01bb43
Fix missing threads in thread list ( #2226 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-03-10 16:44:42 +00:00
Michael Telatynski
40d1674a5c
Fix incorrect usage of unstable variant of is_falling_back ( #2227 )
2022-03-10 15:31:57 +00:00
Michael Telatynski
35a375e3d2
Update thread relation fields to match MSC3440 changes ( #2218 )
2022-03-09 16:15:44 +00:00
Germain
460f4f9254
fix thread fallback targeting only thread relations ( #2224 )
2022-03-09 11:25:13 +00:00
J. Ryan Stinnett
dbd6af745c
Add lint for unused locals ( #2223 )
2022-03-09 10:09:00 +00:00
Germain
2ac9448646
Disable pending events for thread list when server supports threads ( #2222 )
2022-03-08 15:51:19 +00:00
Michael Telatynski
9e4f109e80
Fix wrongly asserting that PushRule::conditions is non-null ( #2217 )
2022-03-04 08:36:00 +00:00
Michael Telatynski
5d54bf558c
Fix defer not supporting resolving with a Promise<T> ( #2216 )
2022-03-03 21:41:23 +00:00
Germain
fc5f0e8047
Fix message ordering in threads ( #2215 )
2022-03-03 15:21:17 +00:00
Kerry
6bc584ba8b
add LocationAssetType enum ( #2214 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-03 10:49:16 +01:00
Germain
ac4e504b8d
Make eventType optional for relations ( #2212 )
2022-03-02 14:37:15 +00:00
Michael Telatynski
0abee2a0bf
Fix wrong event_id being sent for m.in_reply_to of threads ( #2213 )
2022-03-02 14:27:08 +00:00
Germain
4e4afdb795
Update thread info after MSC3440 updates ( #2209 )
2022-03-02 10:52:08 +00:00
Michael Telatynski
9b429c1902
Throw error if both browser-index and (node) index are loaded ( #2211 )
2022-03-01 20:42:13 +00:00
Germain
b782dee2ef
Partition root event in thread and room timeline ( #2210 )
2022-03-01 13:04:24 +00:00
Germain
1fae9cb3ef
Update versions response type ( #2208 )
2022-02-28 10:44:38 +00:00
Germain
124bfc9328
Make createThread more resilient when missing rootEvent ( #2207 )
2022-02-28 10:02:09 +00:00
Šimon Brandner
53aa34fba5
Support for mid-call devices changes ( #2154 )
...
* Push to `usermediaSenders` in `upgradeCall()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Make sure to enable tracks after a call upgrade
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Simplify `updateMuteStatus()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add copyright for 2022
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add `updateLocalUsermediaStream()`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Support mid-call device changes
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Use `updateLocalUsermediaStream()` for call upgrades
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Improve mock classes
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Add new tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-02-25 14:52:05 +00:00
Michael Telatynski
7d9800b817
Stop using development /spaces API in favour of v1 /hierarchy API ( #2204 )
2022-02-25 10:43:24 +00:00
Michael Telatynski
735ccca18b
Fix bug with the /hierarchy API sending invalid requests ( #2201 )
2022-02-24 14:49:48 +00:00
Michael Telatynski
4de1699c49
Add new room state emit RoomStateEvent.Update for lower-frequency hits ( #2192 )
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2022-02-24 13:16:59 +00:00
Kerry
1d1d59c757
eslint to 8.9.0 ( #2198 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-02-24 11:42:31 +01:00
Stanislav Demydiuk
af43687354
Export additional types ( #2195 )
2022-02-24 09:35:05 +00:00
Kerry
2ec5acb55d
fix relation sender filter ( #2196 )
...
* fix relation sender filter
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-02-24 09:44:18 +01:00
David Baker
2128f67dc3
Fix bug with ine-way audio after a transfer ( #2193 )
...
Seems chrome at least will give you a disabled audio track if you
already had another user media audio track and disabled it, so make
sure our tracks are enabled when we add them. We already did this
on one code path but it didn't get moved over when a new code path
was added.
On the plus side, we now know the reason for the ancient code that
had the comment asking what it was for, so update that.
2022-02-23 09:54:14 +00:00
Germain
55dda8420c
Update return type for client.getRoom ( #2190 )
2022-02-22 15:50:23 +00:00
Michael Telatynski
12e525b664
Improve typing around event emitter handlers ( #2180 )
2022-02-22 12:18:07 +00:00
David Baker
7b218905fb
Fix bug where calls could break if rejected from somewhere else ( #2189 )
...
* Fix bug where calls could ignore new events of rejected from somewhere else
When callEventHandler passed a reject event to the call object, it assumed
that always caused the call to end and deleted it from the list, so it
never got any more events. The point of a reject is that it doesn't
end the call if it's already been picked up though. This only removes
the call if it's actually ended.
* Use ts-expect-error
2022-02-21 18:52:24 +00:00
David Baker
080426dfdd
Fix camera stuck on after call transfer ( #2188 )
...
The 'Replaced' error code is handled specially (for better or worse)
so was leaving the capture feeds open. Use the 'transfer' hangup
reason which is what we should be using anyway (and were, on the line
below for the other call...)
2022-02-21 17:11:14 +00:00
Hugh Nimmo-Smith
a89c1990d6
Return send event response from MSC3089Branch.createNewVersion() ( #2186 )
...
* Return send event response from MSC3089Branch.createNewVersion()
* docs: update JSDoc to match
2022-02-21 15:45:43 +00:00
Germain
4e72290d53
Null-guard for undefined rootEvent when creating a thread ( #2187 )
2022-02-21 15:06:01 +00:00
Patrick Cloke
7a7318b636
Fix incorrect type referenced in receiptCacheByEventId. ( #2185 )
2022-02-17 17:39:17 +00:00
Travis Ralston
e86d8861b9
Add functions to support refresh tokens ( #2178 )
...
* Add functions for refreshing access tokens
* Add function to change the client's access token in flight
* Appease the linter
* Use sensible code style
2022-02-15 20:07:36 +00:00
Michael Telatynski
2910e62bb6
Fix synthetic read receipt handling ( #2174 )
2022-02-14 18:45:02 -07:00
Michael Telatynski
2bb14698a5
Revert "Sign backup with cross-signing key when we reset it." ( #2175 )
2022-02-14 19:11:06 +00:00
Hubert Chathi
cfad8d3614
Enable key backup after we reset it ( #2170 )
...
This ensures that we remember it if bootstrapCrossSigning gets called, so that
the authData gets signed by the master key, if a new key is created.
2022-02-11 08:42:49 -05:00
Germain
d9c3b880fc
Revert event-mapper optimisations ( #2171 )
2022-02-11 12:55:44 +00:00
Hugh Nimmo-Smith
25c115739c
Fix error in uploadContent() when file is empty under Node.js ( #2155 )
...
* Fix error in uploadContent() when file is empty under Node.js
* Make type safe check work
* Make comment actually make sense
2022-02-11 11:16:10 +00:00
David Baker
d97c514b8d
Log when member event membership is undefined ( #2169 )
...
* Log when member event membership is undefined
To diagnose https://github.com/vector-im/element-web/issues/20962
* May as well have a stack trace too
2022-02-10 22:33:49 +00:00
Germain
6b822ccd61
Improve thread partitioning for 2nd degree relations ( #2165 )
2022-02-10 15:09:46 +00:00
Hubert Chathi
47c5c4645e
Check the backup info against the stored private key when determining trust. ( #2167 )
2022-02-10 08:34:21 -05:00
Hubert Chathi
ea0eaff212
Back up keys before logging out ( #2158 )
2022-02-09 08:36:43 -05:00
Michael Telatynski
ffab55452a
Fix issue with rooms not getting marked as unread ( #2163 )
2022-02-08 12:32:14 +00:00
Germain
9120b1dfd9
Expose room state helper ( #2162 )
2022-02-08 12:08:43 +00:00
Šimon Brandner
5d4e3183aa
Don't store streams that are only used once ( #2157 )
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-02-08 10:13:58 +00:00