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
rename target id to related id and add jsdoc comments
This commit is contained in:
@@ -1730,11 +1730,11 @@ MatrixClient.prototype._sendCompleteEvent = function(roomId, eventObject, txnId,
|
||||
}));
|
||||
|
||||
const room = this.getRoom(roomId);
|
||||
const targetId = localEvent.getTargetId();
|
||||
const targetId = localEvent.getRelatedId();
|
||||
if (targetId && targetId.startsWith("~")) {
|
||||
const target = room.getPendingEvents().find(e => e.getId() === targetId);
|
||||
target.once("Event.localEventIdReplaced", () => {
|
||||
localEvent.updateTargetId(target.getId());
|
||||
localEvent.updateRelatedId(target.getId());
|
||||
});
|
||||
}
|
||||
const type = localEvent.getType();
|
||||
|
||||
Reference in New Issue
Block a user