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 m.secrets.share to m.secrets.send to agree with latest MSC
This commit is contained in:
@@ -397,7 +397,7 @@ export default class SecretStorage extends EventEmitter {
|
|||||||
device_trust: this._baseApis.checkDeviceTrust(sender, deviceId),
|
device_trust: this._baseApis.checkDeviceTrust(sender, deviceId),
|
||||||
send: async (secret) => {
|
send: async (secret) => {
|
||||||
const payload = {
|
const payload = {
|
||||||
type: "m.secret.share",
|
type: "m.secret.send",
|
||||||
content: {
|
content: {
|
||||||
request_id: content.request_id,
|
request_id: content.request_id,
|
||||||
secret: secret,
|
secret: secret,
|
||||||
|
|||||||
@@ -1946,7 +1946,7 @@ Crypto.prototype._onToDeviceEvent = function(event) {
|
|||||||
this._onRoomKeyRequestEvent(event);
|
this._onRoomKeyRequestEvent(event);
|
||||||
} else if (event.getType() === "m.secret.request") {
|
} else if (event.getType() === "m.secret.request") {
|
||||||
this._secretStorage._onRequestReceived(event);
|
this._secretStorage._onRequestReceived(event);
|
||||||
} else if (event.getType() === "m.secret.share") {
|
} else if (event.getType() === "m.secret.send") {
|
||||||
this._secretStorage._onSecretReceived(event);
|
this._secretStorage._onSecretReceived(event);
|
||||||
} else if (event.getType() === "m.key.verification.request") {
|
} else if (event.getType() === "m.key.verification.request") {
|
||||||
this._onKeyVerificationRequest(event);
|
this._onKeyVerificationRequest(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user