Skip to content

Commit fff34a2

Browse files
committed
Fix no updating output (keybase#22273)
(cherry picked from commit 6b3d3e7)
1 parent 054fc11 commit fff34a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

shared/reducers/crypto.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export default Container.makeReducer<Actions, Types.State>(initialState, {
6868
if (operation !== Constants.Operations.Encrypt) return
6969

7070
const op = draftState.encrypt
71+
72+
// Output no longer valid since recipients have changed
73+
op.outputMatchesInput = false
74+
7175
if (!op.recipients.length && recipients.length) {
7276
op.meta.hasRecipients = true
7377
op.meta.hasSBS = hasSBS
@@ -89,6 +93,10 @@ export default Container.makeReducer<Actions, Types.State>(initialState, {
8993
...oldOptions,
9094
...newOptions,
9195
}
96+
97+
// Output no longer valid since options have changed
98+
encrypt.outputMatchesInput = false
99+
92100
// User set themselves as a recipient so don't show the 'includeSelf' option for encrypt (since they're encrypting to themselves)
93101
if (hideIncludeSelf) {
94102
encrypt.meta.hideIncludeSelf = hideIncludeSelf

0 commit comments

Comments
 (0)