name userId -> ownUserId as elsewhere
This commit is contained in:
parent
8d0d4570dd
commit
71ba2dd714
1 changed files with 3 additions and 3 deletions
|
@ -31,11 +31,11 @@ function findFirstSessionId(sessionIds) {
|
|||
const OTK_ALGORITHM = "signed_curve25519";
|
||||
|
||||
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._olm = olm;
|
||||
this._olmUtil = olmUtil;
|
||||
this._userId = userId;
|
||||
this._ownUserId = ownUserId;
|
||||
this._storage = storage;
|
||||
this._now = now;
|
||||
this._pickleKey = pickleKey;
|
||||
|
@ -127,7 +127,7 @@ export class Encryption {
|
|||
"ed25519": device.ed25519Key
|
||||
},
|
||||
recipient: device.userId,
|
||||
sender: this._userId,
|
||||
sender: this._ownUserId,
|
||||
content,
|
||||
type
|
||||
}
|
||||
|
|
Reference in a new issue