1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

add unstableClientRelationReplacements in js-sdk

This commit is contained in:
Bruno Windels
2019-05-14 15:33:49 +01:00
parent 455f52f1f5
commit 852c88c341
3 changed files with 14 additions and 1 deletions

View File

@@ -153,6 +153,11 @@ function keyFromRecoverySession(session, decryptionKey) {
* via `EventTimelineSet#getRelationsForEvent`.
* This feature is currently unstable and the API may change without notice.
*
* @param {boolean} [opts.unstableClientRelationReplacements = false]
* Optional. Set to true to enable client-side handling of m.replace event relations,
* exposed through the `Room.replaceEvent` event.
* This feature is currently unstable and the API may change without notice.
*
* @param {Array} [opts.verificationMethods] Optional. The verification method
* that the application can handle. Each element should be an item from {@link
* module:crypto~verificationMethods verificationMethods}, or a class that
@@ -219,6 +224,7 @@ function MatrixClient(opts) {
this.urlPreviewCache = {};
this._notifTimelineSet = null;
this.unstableClientRelationAggregation = !!opts.unstableClientRelationAggregation;
this.unstableClientRelationReplacements = !!opts.unstableClientRelationReplacements;
this._crypto = null;
this._cryptoStore = opts.cryptoStore;