You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
remove flag for edits as it's not handled separately anymore
This commit is contained in:
@@ -153,11 +153,6 @@ function keyFromRecoverySession(session, decryptionKey) {
|
|||||||
* via `EventTimelineSet#getRelationsForEvent`.
|
* via `EventTimelineSet#getRelationsForEvent`.
|
||||||
* This feature is currently unstable and the API may change without notice.
|
* 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
|
* @param {Array} [opts.verificationMethods] Optional. The verification method
|
||||||
* that the application can handle. Each element should be an item from {@link
|
* that the application can handle. Each element should be an item from {@link
|
||||||
* module:crypto~verificationMethods verificationMethods}, or a class that
|
* module:crypto~verificationMethods verificationMethods}, or a class that
|
||||||
@@ -224,7 +219,6 @@ function MatrixClient(opts) {
|
|||||||
this.urlPreviewCache = {};
|
this.urlPreviewCache = {};
|
||||||
this._notifTimelineSet = null;
|
this._notifTimelineSet = null;
|
||||||
this.unstableClientRelationAggregation = !!opts.unstableClientRelationAggregation;
|
this.unstableClientRelationAggregation = !!opts.unstableClientRelationAggregation;
|
||||||
this.unstableClientRelationReplacements = !!opts.unstableClientRelationReplacements;
|
|
||||||
|
|
||||||
this._crypto = null;
|
this._crypto = null;
|
||||||
this._cryptoStore = opts.cryptoStore;
|
this._cryptoStore = opts.cryptoStore;
|
||||||
|
|||||||
@@ -99,11 +99,6 @@ function synthesizeReceipt(userId, event, receiptType) {
|
|||||||
* via `EventTimelineSet#getRelationsForEvent`.
|
* via `EventTimelineSet#getRelationsForEvent`.
|
||||||
* This feature is currently unstable and the API may change without notice.
|
* 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} roomId The ID of this room.
|
||||||
* @prop {string} name The human-readable display name for this room.
|
* @prop {string} name The human-readable display name for this room.
|
||||||
* @prop {Array<MatrixEvent>} timeline The live event timeline for this room,
|
* @prop {Array<MatrixEvent>} timeline The live event timeline for this room,
|
||||||
|
|||||||
@@ -119,14 +119,12 @@ SyncApi.prototype.createRoom = function(roomId) {
|
|||||||
const {
|
const {
|
||||||
timelineSupport,
|
timelineSupport,
|
||||||
unstableClientRelationAggregation,
|
unstableClientRelationAggregation,
|
||||||
unstableClientRelationReplacements,
|
|
||||||
} = client;
|
} = client;
|
||||||
const room = new Room(roomId, client, client.getUserId(), {
|
const room = new Room(roomId, client, client.getUserId(), {
|
||||||
lazyLoadMembers: this.opts.lazyLoadMembers,
|
lazyLoadMembers: this.opts.lazyLoadMembers,
|
||||||
pendingEventOrdering: this.opts.pendingEventOrdering,
|
pendingEventOrdering: this.opts.pendingEventOrdering,
|
||||||
timelineSupport,
|
timelineSupport,
|
||||||
unstableClientRelationAggregation,
|
unstableClientRelationAggregation,
|
||||||
unstableClientRelationReplacements,
|
|
||||||
});
|
});
|
||||||
client.reEmitter.reEmit(room, ["Room.name", "Room.timeline", "Room.redaction",
|
client.reEmitter.reEmit(room, ["Room.name", "Room.timeline", "Room.redaction",
|
||||||
"Room.receipt", "Room.tags",
|
"Room.receipt", "Room.tags",
|
||||||
|
|||||||
Reference in New Issue
Block a user