mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
name userId -> ownUserId as elsewhere
This commit is contained in:
parent
8d0d4570dd
commit
71ba2dd714
@ -31,11 +31,11 @@ function findFirstSessionId(sessionIds) {
|
|||||||
const OTK_ALGORITHM = "signed_curve25519";
|
const OTK_ALGORITHM = "signed_curve25519";
|
||||||
|
|
||||||
export class Encryption {
|
export class Encryption {
|
||||||
constructor({account, olm, olmUtil, userId, storage, now, pickleKey, senderKeyLock}) {
|
constructor({account, olm, olmUtil, ownUserId, storage, now, pickleKey, senderKeyLock}) {
|
||||||
this._account = account;
|
this._account = account;
|
||||||
this._olm = olm;
|
this._olm = olm;
|
||||||
this._olmUtil = olmUtil;
|
this._olmUtil = olmUtil;
|
||||||
this._userId = userId;
|
this._ownUserId = ownUserId;
|
||||||
this._storage = storage;
|
this._storage = storage;
|
||||||
this._now = now;
|
this._now = now;
|
||||||
this._pickleKey = pickleKey;
|
this._pickleKey = pickleKey;
|
||||||
@ -127,7 +127,7 @@ export class Encryption {
|
|||||||
"ed25519": device.ed25519Key
|
"ed25519": device.ed25519Key
|
||||||
},
|
},
|
||||||
recipient: device.userId,
|
recipient: device.userId,
|
||||||
sender: this._userId,
|
sender: this._ownUserId,
|
||||||
content,
|
content,
|
||||||
type
|
type
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user