From 266d0f9d057d16a10409e278450367f246e29e40 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 16 May 2019 14:40:17 +0100 Subject: [PATCH] remove flag for edits as it's not handled separately anymore --- src/client.js | 6 ------ src/models/room.js | 5 ----- src/sync.js | 2 -- 3 files changed, 13 deletions(-) diff --git a/src/client.js b/src/client.js index f0e6fe074..aabc7f288 100644 --- a/src/client.js +++ b/src/client.js @@ -153,11 +153,6 @@ 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 @@ -224,7 +219,6 @@ function MatrixClient(opts) { this.urlPreviewCache = {}; this._notifTimelineSet = null; this.unstableClientRelationAggregation = !!opts.unstableClientRelationAggregation; - this.unstableClientRelationReplacements = !!opts.unstableClientRelationReplacements; this._crypto = null; this._cryptoStore = opts.cryptoStore; diff --git a/src/models/room.js b/src/models/room.js index 4f488dab1..daafd3b3b 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -99,11 +99,6 @@ function synthesizeReceipt(userId, event, receiptType) { * 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. - * * @prop {string} roomId The ID of this room. * @prop {string} name The human-readable display name for this room. * @prop {Array} timeline The live event timeline for this room, diff --git a/src/sync.js b/src/sync.js index b180c1dd0..7e3cbf817 100644 --- a/src/sync.js +++ b/src/sync.js @@ -119,14 +119,12 @@ SyncApi.prototype.createRoom = function(roomId) { const { timelineSupport, unstableClientRelationAggregation, - unstableClientRelationReplacements, } = client; const room = new Room(roomId, client, client.getUserId(), { lazyLoadMembers: this.opts.lazyLoadMembers, pendingEventOrdering: this.opts.pendingEventOrdering, timelineSupport, unstableClientRelationAggregation, - unstableClientRelationReplacements, }); client.reEmitter.reEmit(room, ["Room.name", "Room.timeline", "Room.redaction", "Room.receipt", "Room.tags",