({fingerprint, user, keyringId})
| 115 | } |
| 116 | |
| 117 | async addUser({fingerprint, user, keyringId}) { |
| 118 | const keyring = await keyringById(keyringId); |
| 119 | const privateKey = keyring.getPrivateKeyByFpr(fingerprint); |
| 120 | const unlockedKey = await this.unlockKey({key: privateKey, reason: 'PWD_DIALOG_REASON_ADD_USER'}); |
| 121 | await keyring.addUser(unlockedKey, user); |
| 122 | await this.sendKeyUpdate(); |
| 123 | deletePwdCache(fingerprint); |
| 124 | } |
| 125 | |
| 126 | async revokeUser({fingerprint, userId, keyringId}) { |
| 127 | const keyring = await keyringById(keyringId); |
nothing calls this directly
no test coverage detected