matrix-js-sdk 42.0.0 → 42.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/lib/@types/PushRules.d.ts.map +1 -1
  3. package/lib/@types/PushRules.js +0 -5
  4. package/lib/@types/PushRules.js.map +1 -1
  5. package/lib/@types/auth.d.ts.map +1 -1
  6. package/lib/@types/auth.js +0 -5
  7. package/lib/@types/auth.js.map +1 -1
  8. package/lib/@types/crypto.d.ts.map +1 -1
  9. package/lib/@types/crypto.js.map +1 -1
  10. package/lib/@types/event.d.ts +3 -1
  11. package/lib/@types/event.d.ts.map +1 -1
  12. package/lib/@types/event.js +1 -0
  13. package/lib/@types/event.js.map +1 -1
  14. package/lib/@types/extensible_events.js.map +1 -1
  15. package/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -1
  16. package/lib/@types/media.js.map +1 -1
  17. package/lib/@types/partials.d.ts.map +1 -1
  18. package/lib/@types/partials.js.map +1 -1
  19. package/lib/@types/requests.d.ts.map +1 -1
  20. package/lib/@types/requests.js +0 -5
  21. package/lib/@types/requests.js.map +1 -1
  22. package/lib/@types/search.d.ts.map +1 -1
  23. package/lib/@types/search.js +0 -3
  24. package/lib/@types/search.js.map +1 -1
  25. package/lib/@types/spaces.d.ts.map +1 -1
  26. package/lib/@types/spaces.js.map +1 -1
  27. package/lib/@types/synapse.d.ts.map +1 -1
  28. package/lib/@types/synapse.js.map +1 -1
  29. package/lib/@types/threepids.js.map +1 -1
  30. package/lib/ToDeviceMessageQueue.d.ts.map +1 -1
  31. package/lib/ToDeviceMessageQueue.js +0 -2
  32. package/lib/ToDeviceMessageQueue.js.map +1 -1
  33. package/lib/browser-index.d.ts.map +1 -1
  34. package/lib/browser-index.js +3 -1
  35. package/lib/browser-index.js.map +1 -1
  36. package/lib/client.d.ts +5 -8
  37. package/lib/client.d.ts.map +1 -1
  38. package/lib/client.js +5 -46
  39. package/lib/client.js.map +1 -1
  40. package/lib/common-crypto/key-passphrase.d.ts.map +1 -1
  41. package/lib/common-crypto/key-passphrase.js +0 -3
  42. package/lib/common-crypto/key-passphrase.js.map +1 -1
  43. package/lib/crypto/store/base.d.ts.map +1 -1
  44. package/lib/crypto/store/base.js +0 -9
  45. package/lib/crypto/store/base.js.map +1 -1
  46. package/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -1
  47. package/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
  48. package/lib/crypto/store/localStorage-crypto-store.js +0 -2
  49. package/lib/crypto/store/localStorage-crypto-store.js.map +1 -1
  50. package/lib/crypto-api/keybackup.d.ts +13 -6
  51. package/lib/crypto-api/keybackup.d.ts.map +1 -1
  52. package/lib/crypto-api/keybackup.js.map +1 -1
  53. package/lib/embedded.d.ts.map +1 -1
  54. package/lib/embedded.js +0 -5
  55. package/lib/embedded.js.map +1 -1
  56. package/lib/feature.d.ts.map +1 -1
  57. package/lib/feature.js +0 -3
  58. package/lib/feature.js.map +1 -1
  59. package/lib/filter-component.d.ts.map +1 -1
  60. package/lib/filter-component.js +2 -5
  61. package/lib/filter-component.js.map +1 -1
  62. package/lib/filter.d.ts.map +1 -1
  63. package/lib/filter.js +0 -4
  64. package/lib/filter.js.map +1 -1
  65. package/lib/http-api/interface.d.ts.map +1 -1
  66. package/lib/http-api/interface.js.map +1 -1
  67. package/lib/http-api/refresh.d.ts.map +1 -1
  68. package/lib/http-api/refresh.js +0 -3
  69. package/lib/http-api/refresh.js.map +1 -1
  70. package/lib/interactive-auth.d.ts.map +1 -1
  71. package/lib/interactive-auth.js +5 -6
  72. package/lib/interactive-auth.js.map +1 -1
  73. package/lib/logger.d.ts.map +1 -1
  74. package/lib/logger.js +0 -2
  75. package/lib/logger.js.map +1 -1
  76. package/lib/matrixrtc/CallMembership.d.ts +3 -3
  77. package/lib/matrixrtc/CallMembership.js +5 -5
  78. package/lib/matrixrtc/CallMembership.js.map +1 -1
  79. package/lib/matrixrtc/MatrixRTCSession.d.ts +18 -1
  80. package/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  81. package/lib/matrixrtc/MatrixRTCSession.js +56 -4
  82. package/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  83. package/lib/matrixrtc/MatrixRTCSessionManager.d.ts +14 -1
  84. package/lib/matrixrtc/MatrixRTCSessionManager.d.ts.map +1 -1
  85. package/lib/matrixrtc/MatrixRTCSessionManager.js +20 -1
  86. package/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
  87. package/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
  88. package/lib/matrixrtc/MembershipManager.js +9 -6
  89. package/lib/matrixrtc/MembershipManager.js.map +1 -1
  90. package/lib/matrixrtc/index.d.ts +1 -1
  91. package/lib/matrixrtc/index.d.ts.map +1 -1
  92. package/lib/matrixrtc/index.js +1 -1
  93. package/lib/matrixrtc/index.js.map +1 -1
  94. package/lib/matrixrtc/membershipData/rtc.d.ts +6 -3
  95. package/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -1
  96. package/lib/matrixrtc/membershipData/rtc.js +7 -4
  97. package/lib/matrixrtc/membershipData/rtc.js.map +1 -1
  98. package/lib/matrixrtc/types.d.ts +19 -6
  99. package/lib/matrixrtc/types.d.ts.map +1 -1
  100. package/lib/matrixrtc/types.js +11 -1
  101. package/lib/matrixrtc/types.js.map +1 -1
  102. package/lib/models/event.d.ts.map +1 -1
  103. package/lib/models/event.js +0 -6
  104. package/lib/models/event.js.map +1 -1
  105. package/lib/models/room-state.d.ts.map +1 -1
  106. package/lib/models/room-state.js.map +1 -1
  107. package/lib/models/room.d.ts.map +1 -1
  108. package/lib/models/room.js +6 -6
  109. package/lib/models/room.js.map +1 -1
  110. package/lib/models/thread.d.ts +2 -2
  111. package/lib/models/thread.d.ts.map +1 -1
  112. package/lib/models/thread.js.map +1 -1
  113. package/lib/realtime-callbacks.js +0 -1
  114. package/lib/realtime-callbacks.js.map +1 -1
  115. package/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts.map +1 -1
  116. package/lib/rendezvous/transports/MSC4108RendezvousSession.js +0 -1
  117. package/lib/rendezvous/transports/MSC4108RendezvousSession.js.map +1 -1
  118. package/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -1
  119. package/lib/rust-crypto/OutgoingRequestProcessor.js +0 -2
  120. package/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
  121. package/lib/rust-crypto/backup.d.ts +21 -1
  122. package/lib/rust-crypto/backup.d.ts.map +1 -1
  123. package/lib/rust-crypto/backup.js +62 -21
  124. package/lib/rust-crypto/backup.js.map +1 -1
  125. package/lib/rust-crypto/device-converter.d.ts.map +1 -1
  126. package/lib/rust-crypto/device-converter.js +1 -0
  127. package/lib/rust-crypto/device-converter.js.map +1 -1
  128. package/lib/rust-crypto/index.d.ts +7 -0
  129. package/lib/rust-crypto/index.d.ts.map +1 -1
  130. package/lib/rust-crypto/index.js +3 -3
  131. package/lib/rust-crypto/index.js.map +1 -1
  132. package/lib/rust-crypto/libolm_migration.d.ts.map +1 -1
  133. package/lib/rust-crypto/libolm_migration.js +0 -2
  134. package/lib/rust-crypto/libolm_migration.js.map +1 -1
  135. package/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  136. package/lib/rust-crypto/rust-crypto.js +0 -3
  137. package/lib/rust-crypto/rust-crypto.js.map +1 -1
  138. package/lib/scheduler.d.ts.map +1 -1
  139. package/lib/scheduler.js +0 -3
  140. package/lib/scheduler.js.map +1 -1
  141. package/lib/sliding-sync-sdk.d.ts.map +1 -1
  142. package/lib/sliding-sync-sdk.js +6 -0
  143. package/lib/sliding-sync-sdk.js.map +1 -1
  144. package/lib/sliding-sync.d.ts.map +1 -1
  145. package/lib/sliding-sync.js +3 -0
  146. package/lib/sliding-sync.js.map +1 -1
  147. package/lib/store/indexeddb.d.ts.map +1 -1
  148. package/lib/store/indexeddb.js +0 -2
  149. package/lib/store/indexeddb.js.map +1 -1
  150. package/lib/store/memory.d.ts.map +1 -1
  151. package/lib/store/memory.js +7 -9
  152. package/lib/store/memory.js.map +1 -1
  153. package/lib/sync-accumulator.d.ts.map +1 -1
  154. package/lib/sync-accumulator.js +1 -5
  155. package/lib/sync-accumulator.js.map +1 -1
  156. package/lib/sync.d.ts.map +1 -1
  157. package/lib/sync.js +1 -1
  158. package/lib/sync.js.map +1 -1
  159. package/lib/timeline-window.d.ts.map +1 -1
  160. package/lib/timeline-window.js +0 -1
  161. package/lib/timeline-window.js.map +1 -1
  162. package/lib/utils/internal/deriveKeys.d.ts.map +1 -1
  163. package/lib/utils/internal/deriveKeys.js +0 -1
  164. package/lib/utils/internal/deriveKeys.js.map +1 -1
  165. package/lib/webrtc/callEventTypes.d.ts.map +1 -1
  166. package/lib/webrtc/callEventTypes.js +0 -5
  167. package/lib/webrtc/callEventTypes.js.map +1 -1
  168. package/package.json +5 -5
  169. package/src/@types/PushRules.ts +0 -5
  170. package/src/@types/auth.ts +0 -6
  171. package/src/@types/crypto.ts +2 -6
  172. package/src/@types/event.ts +3 -0
  173. package/src/@types/extensible_events.ts +4 -4
  174. package/src/@types/matrix-sdk-crypto-wasm.d.ts +0 -1
  175. package/src/@types/media.ts +1 -1
  176. package/src/@types/partials.ts +0 -2
  177. package/src/@types/requests.ts +0 -5
  178. package/src/@types/search.ts +0 -2
  179. package/src/@types/spaces.ts +0 -2
  180. package/src/@types/synapse.ts +0 -2
  181. package/src/@types/threepids.ts +2 -2
  182. package/src/ToDeviceMessageQueue.ts +0 -2
  183. package/src/browser-index.ts +3 -3
  184. package/src/client.ts +18 -61
  185. package/src/common-crypto/key-passphrase.ts +0 -1
  186. package/src/crypto/store/base.ts +1 -8
  187. package/src/crypto/store/indexeddb-crypto-store-backend.ts +1 -1
  188. package/src/crypto/store/localStorage-crypto-store.ts +0 -1
  189. package/src/crypto-api/keybackup.ts +14 -7
  190. package/src/embedded.ts +0 -5
  191. package/src/feature.ts +0 -3
  192. package/src/filter-component.ts +1 -2
  193. package/src/filter.ts +0 -3
  194. package/src/http-api/interface.ts +0 -1
  195. package/src/http-api/refresh.ts +0 -1
  196. package/src/interactive-auth.ts +4 -4
  197. package/src/logger.ts +0 -2
  198. package/src/matrixrtc/CallMembership.ts +5 -5
  199. package/src/matrixrtc/MatrixRTCSession.ts +70 -3
  200. package/src/matrixrtc/MatrixRTCSessionManager.ts +21 -2
  201. package/src/matrixrtc/MembershipManager.ts +8 -5
  202. package/src/matrixrtc/index.ts +1 -1
  203. package/src/matrixrtc/membershipData/rtc.ts +18 -7
  204. package/src/matrixrtc/types.ts +24 -7
  205. package/src/models/event.ts +0 -3
  206. package/src/models/room-state.ts +0 -3
  207. package/src/models/room.ts +6 -6
  208. package/src/models/thread.ts +2 -2
  209. package/src/realtime-callbacks.ts +0 -1
  210. package/src/rendezvous/transports/MSC4108RendezvousSession.ts +0 -1
  211. package/src/rust-crypto/OutgoingRequestProcessor.ts +0 -1
  212. package/src/rust-crypto/backup.ts +66 -28
  213. package/src/rust-crypto/device-converter.ts +1 -0
  214. package/src/rust-crypto/index.ts +11 -0
  215. package/src/rust-crypto/libolm_migration.ts +0 -2
  216. package/src/rust-crypto/rust-crypto.ts +0 -3
  217. package/src/scheduler.ts +0 -3
  218. package/src/sliding-sync-sdk.ts +3 -0
  219. package/src/sliding-sync.ts +2 -0
  220. package/src/store/indexeddb.ts +0 -2
  221. package/src/store/memory.ts +7 -9
  222. package/src/sync-accumulator.ts +1 -3
  223. package/src/sync.ts +1 -3
  224. package/src/timeline-window.ts +0 -1
  225. package/src/utils/internal/deriveKeys.ts +0 -1
  226. package/src/webrtc/callEventTypes.ts +0 -5
package/lib/client.js CHANGED
@@ -79,7 +79,6 @@ import { RetentionPolicyService } from "./retentionPolicy.js";
79
79
  const SCROLLBACK_DELAY_MS = 3000;
80
80
  const TURN_CHECK_INTERVAL = 10 * 60 * 1000; // poll for turn credentials every 10 minutes
81
81
 
82
- export const UNSTABLE_MSC3852_LAST_SEEN_UA = new UnstableValue("last_seen_user_agent", "org.matrix.msc3852.last_seen_user_agent");
83
82
  export let PendingEventOrdering = /*#__PURE__*/function (PendingEventOrdering) {
84
83
  PendingEventOrdering["Chronological"] = "chronological";
85
84
  PendingEventOrdering["Detached"] = "detached";
@@ -103,8 +102,6 @@ export const STABLE_MSC4133_EXTENDED_PROFILES = "uk.tcpip.msc4133.stable";
103
102
  * Proposed at https://github.com/matrix-org/matrix-doc/pull/3266
104
103
  */
105
104
 
106
- /* eslint-enable camelcase */
107
-
108
105
  // We're using this constant for methods overloading and inspect whether a variable
109
106
  // contains an eventId or not. This was required to ensure backwards compatibility
110
107
  // of methods for threads
@@ -434,7 +431,6 @@ export class MatrixClient extends TypedEventEmitter {
434
431
  _defineProperty(this, "matrixRTC", void 0);
435
432
  _defineProperty(this, "serverCapabilitiesService", void 0);
436
433
  _defineProperty(this, "retentionPolicyService", void 0);
437
- // eslint-disable-next-line
438
434
  _defineProperty(this, "_unstable_shouldApplyMessageRetention", void 0);
439
435
  _defineProperty(this, "startCallEventHandler", () => {
440
436
  if (this.isInitialSyncComplete()) {
@@ -1367,20 +1363,7 @@ export class MatrixClient extends TypedEventEmitter {
1367
1363
  }
1368
1364
  }
1369
1365
  async deleteAccountData(eventType) {
1370
- const msc3391DeleteAccountDataServerSupport = this.canSupport.get(Feature.AccountDataDeletion);
1371
- // if deletion is not supported overwrite with empty content
1372
- if (msc3391DeleteAccountDataServerSupport === ServerSupport.Unsupported) {
1373
- await this.setAccountData(eventType, {});
1374
- return;
1375
- }
1376
- const path = utils.encodeUri("/user/$userId/account_data/$type", {
1377
- $userId: this.getSafeUserId(),
1378
- $type: eventType
1379
- });
1380
- const options = msc3391DeleteAccountDataServerSupport === ServerSupport.Unstable ? {
1381
- prefix: "/_matrix/client/unstable/org.matrix.msc3391"
1382
- } : undefined;
1383
- return await this.http.authedRequest(Method.Delete, path, undefined, undefined, options);
1366
+ await this.setAccountData(eventType, {});
1384
1367
  }
1385
1368
 
1386
1369
  /**
@@ -1681,7 +1664,6 @@ export class MatrixClient extends TypedEventEmitter {
1681
1664
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
1682
1665
  * @see MatrixSafetyError
1683
1666
  */
1684
- // eslint-disable-next-line @typescript-eslint/naming-convention
1685
1667
  async unstable_createLiveBeacon(roomId, beaconInfoContent) {
1686
1668
  return this.unstable_setLiveBeacon(roomId, beaconInfoContent);
1687
1669
  }
@@ -1694,7 +1676,6 @@ export class MatrixClient extends TypedEventEmitter {
1694
1676
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
1695
1677
  * @see MatrixSafetyError
1696
1678
  */
1697
- // eslint-disable-next-line @typescript-eslint/naming-convention
1698
1679
  async unstable_setLiveBeacon(roomId, beaconInfoContent) {
1699
1680
  return this.sendStateEvent(roomId, M_BEACON_INFO.name, beaconInfoContent, this.getUserId());
1700
1681
  }
@@ -2247,7 +2228,6 @@ export class MatrixClient extends TypedEventEmitter {
2247
2228
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2248
2229
  * @see MatrixSafetyError
2249
2230
  */
2250
- // eslint-disable-next-line
2251
2231
  async _unstable_sendDelayedEvent(roomId, delayOpts, threadId, eventType, content, txnId) {
2252
2232
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
2253
2233
  throw new UnsupportedDelayedEventsEndpointError("Server does not support the delayed events API", "sendDelayedEvent");
@@ -2274,7 +2254,6 @@ export class MatrixClient extends TypedEventEmitter {
2274
2254
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2275
2255
  * @see MatrixSafetyError
2276
2256
  */
2277
- // eslint-disable-next-line
2278
2257
  async _unstable_sendStickyDelayedEvent(roomId, stickDuration, delayOpts, threadId, eventType, content, txnId) {
2279
2258
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
2280
2259
  throw new UnsupportedDelayedEventsEndpointError("Server does not support the delayed events API", "getDelayedEvents");
@@ -2306,7 +2285,6 @@ export class MatrixClient extends TypedEventEmitter {
2306
2285
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2307
2286
  * @see MatrixSafetyError
2308
2287
  */
2309
- // eslint-disable-next-line
2310
2288
  async _unstable_sendDelayedStateEvent(roomId, delayOpts, eventType, content, stateKey = "", opts = {}) {
2311
2289
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
2312
2290
  throw new UnsupportedDelayedEventsEndpointError("Server does not support the delayed events API", "sendDelayedStateEvent");
@@ -2331,7 +2309,6 @@ export class MatrixClient extends TypedEventEmitter {
2331
2309
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2332
2310
  * @see MatrixSafetyError
2333
2311
  */
2334
- // eslint-disable-next-line
2335
2312
  async _unstable_sendStickyEvent(roomId, stickDuration, threadId, eventType, content, txnId) {
2336
2313
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4354_STICKY_EVENTS))) {
2337
2314
  throw new UnsupportedStickyEventsEndpointError("Server does not support the sticky events", "sendStickyEvent");
@@ -2357,7 +2334,6 @@ export class MatrixClient extends TypedEventEmitter {
2357
2334
  * Note: This endpoint is unstable, and can throw an `Error`.
2358
2335
  * Check progress on [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140) for more details.
2359
2336
  */
2360
- // eslint-disable-next-line
2361
2337
  async _unstable_getDelayedEvents(status, delayId, fromToken) {
2362
2338
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
2363
2339
  throw new UnsupportedDelayedEventsEndpointError("Server does not support the delayed events API", "getDelayedEvents");
@@ -2383,7 +2359,6 @@ export class MatrixClient extends TypedEventEmitter {
2383
2359
  * - {@link _unstable_restartScheduledDelayedEvent}
2384
2360
  * - {@link _unstable_sendScheduledDelayedEvent}
2385
2361
  */
2386
- // eslint-disable-next-line @typescript-eslint/naming-convention
2387
2362
  async _unstable_updateDelayedEvent(delayId, action, requestOptions = {}) {
2388
2363
  if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
2389
2364
  throw new UnsupportedDelayedEventsEndpointError("Server does not support the delayed events API", "updateDelayedEvent");
@@ -2399,7 +2374,6 @@ export class MatrixClient extends TypedEventEmitter {
2399
2374
  *
2400
2375
  * @throws A M_NOT_FOUND error if no matching delayed event could be found.
2401
2376
  */
2402
- // eslint-disable-next-line @typescript-eslint/naming-convention
2403
2377
  async _unstable_cancelScheduledDelayedEvent(delayId, requestOptions = {}) {
2404
2378
  return await this.updateScheduledDelayedEvent(delayId, UpdateDelayedEventAction.Cancel, requestOptions);
2405
2379
  }
@@ -2412,7 +2386,6 @@ export class MatrixClient extends TypedEventEmitter {
2412
2386
  *
2413
2387
  * @throws A M_NOT_FOUND error if no matching delayed event could be found.
2414
2388
  */
2415
- // eslint-disable-next-line @typescript-eslint/naming-convention
2416
2389
  async _unstable_restartScheduledDelayedEvent(delayId, requestOptions = {}) {
2417
2390
  return await this.updateScheduledDelayedEvent(delayId, UpdateDelayedEventAction.Restart, requestOptions);
2418
2391
  }
@@ -2428,7 +2401,6 @@ export class MatrixClient extends TypedEventEmitter {
2428
2401
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2429
2402
  * @see MatrixSafetyError
2430
2403
  */
2431
- // eslint-disable-next-line @typescript-eslint/naming-convention
2432
2404
  async _unstable_sendScheduledDelayedEvent(delayId, requestOptions = {}) {
2433
2405
  return await this.updateScheduledDelayedEvent(delayId, UpdateDelayedEventAction.Send, requestOptions);
2434
2406
  }
@@ -2987,7 +2959,6 @@ export class MatrixClient extends TypedEventEmitter {
2987
2959
  * @throws May throw a `MatrixSafetyError` if content is deemed unsafe.
2988
2960
  * @see MatrixSafetyError
2989
2961
  */
2990
- // eslint-disable-next-line camelcase
2991
2962
 
2992
2963
  setProfileInfo(info, data) {
2993
2964
  const path = utils.encodeUri("/profile/$userId/$info", {
@@ -4473,7 +4444,6 @@ export class MatrixClient extends TypedEventEmitter {
4473
4444
  * @returns Rejects: with an error response.
4474
4445
  */
4475
4446
  // TODO: on spec release, rename this to getMutualRooms
4476
- // eslint-disable-next-line
4477
4447
  async _unstable_getSharedRooms(userId) {
4478
4448
  // Initial variant of the MSC
4479
4449
  const sharedRoomsSupport = await this.doesServerSupportUnstableFeature(UNSTABLE_MSC2666_SHARED_ROOMS);
@@ -4528,7 +4498,6 @@ export class MatrixClient extends TypedEventEmitter {
4528
4498
  * Requires homeserver support for MSC4143.
4529
4499
  * @throws A M_NOT_FOUND error if not supported by the homeserver.
4530
4500
  */
4531
- // eslint-disable-next-line @typescript-eslint/naming-convention
4532
4501
  async _unstable_getRTCTransports() {
4533
4502
  // There is no /versions endpoint to check for support, so we just have to attempt a request.
4534
4503
  return (await this.http.authedRequest(Method.Get, "/rtc/transports", undefined, undefined, {
@@ -5110,7 +5079,6 @@ export class MatrixClient extends TypedEventEmitter {
5110
5079
  * @returns Rejects: with an error response.
5111
5080
  */
5112
5081
  async createRoom(options) {
5113
- // eslint-disable-line camelcase
5114
5082
  // some valid options include: room_alias_name, visibility, invite
5115
5083
 
5116
5084
  // inject the id_access_token if inviting 3rd party addresses
@@ -5228,7 +5196,6 @@ export class MatrixClient extends TypedEventEmitter {
5228
5196
  * @returns Rejects: with an error response.
5229
5197
  */
5230
5198
  upgradeRoom(roomId, newVersion, additionalCreators) {
5231
- // eslint-disable-line camelcase
5232
5199
  const path = utils.encodeUri("/rooms/$roomId/upgrade", {
5233
5200
  $roomId: roomId
5234
5201
  });
@@ -5475,7 +5442,6 @@ export class MatrixClient extends TypedEventEmitter {
5475
5442
  * @returns Rejects: with an error response.
5476
5443
  */
5477
5444
  getRoomIdForAlias(alias) {
5478
- // eslint-disable-line camelcase
5479
5445
  const path = utils.encodeUri("/directory/room/$alias", {
5480
5446
  $alias: alias
5481
5447
  });
@@ -5573,9 +5539,7 @@ export class MatrixClient extends TypedEventEmitter {
5573
5539
  * @returns Promise which resolves: TODO
5574
5540
  * @returns Rejects: with an error response.
5575
5541
  */
5576
- getProfileInfo(userId, info
5577
- // eslint-disable-next-line camelcase
5578
- ) {
5542
+ getProfileInfo(userId, info) {
5579
5543
  const path = info ? utils.encodeUri("/profile/$userId/$info", {
5580
5544
  $userId: userId,
5581
5545
  $info: info
@@ -5663,7 +5627,7 @@ export class MatrixClient extends TypedEventEmitter {
5663
5627
  });
5664
5628
 
5665
5629
  // write through to the cache
5666
- await this.store.storeUserProfiles(new Map([[userId, profile]]));
5630
+ await this.store.storeUserProfiles(new Map([[userId, _objectSpread(_objectSpread({}, storedProfile), profile)]]));
5667
5631
  return profile[key];
5668
5632
  }
5669
5633
 
@@ -5804,9 +5768,7 @@ export class MatrixClient extends TypedEventEmitter {
5804
5768
  * @returns Promise which resolves: on success
5805
5769
  * @returns Rejects: with an error response.
5806
5770
  */
5807
- async unbindThreePid(medium, address
5808
- // eslint-disable-next-line camelcase
5809
- ) {
5771
+ async unbindThreePid(medium, address) {
5810
5772
  const path = "/account/3pid/unbind";
5811
5773
  const data = {
5812
5774
  medium,
@@ -5824,9 +5786,7 @@ export class MatrixClient extends TypedEventEmitter {
5824
5786
  * (generally the empty JSON object)
5825
5787
  * @returns Rejects: with an error response.
5826
5788
  */
5827
- deleteThreePid(medium, address
5828
- // eslint-disable-next-line camelcase
5829
- ) {
5789
+ deleteThreePid(medium, address) {
5830
5790
  const path = "/account/3pid/delete";
5831
5791
  return this.http.authedRequest(Method.Post, path, undefined, {
5832
5792
  medium,
@@ -5881,7 +5841,6 @@ export class MatrixClient extends TypedEventEmitter {
5881
5841
  * @returns Promise which resolves: to an empty object `{}`
5882
5842
  * @returns Rejects: with an error response.
5883
5843
  */
5884
- // eslint-disable-next-line camelcase
5885
5844
  setDeviceDetails(deviceId, body) {
5886
5845
  const path = utils.encodeUri("/devices/$device_id", {
5887
5846
  $device_id: deviceId