Skip to content

Commit

Permalink
[lib] Add staff-only alert when client attempts keyserver session rec…
Browse files Browse the repository at this point in the history
…overy

Summary:
https://linear.app/comm/issue/ENG-9934/staff-only-alert-when-client-attempts-keyserver-session-recovery

Depends on D13953

Test Plan: Trigger performRecovery function

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13961
  • Loading branch information
graszka22 committed Nov 19, 2024
1 parent e39c5d3 commit 6259ceb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/keyserver-conn/keyserver-connection-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ function KeyserverConnectionHandler(props: Props) {
callSingleKeyserverEndpoint: CallSingleKeyserverEndpoint,
innerCallKeyserverEndpoint: CallKeyserverEndpoint,
) => {
showAlertToStaff(
'Performing session recovery',
`source=${recoveryActionSource}`,
);
if (usingCommServicesAccessToken) {
try {
await rawKeyserverAuth({
Expand Down Expand Up @@ -189,6 +193,7 @@ function KeyserverConnectionHandler(props: Props) {
);
},
[
showAlertToStaff,
rawKeyserverAuth,
resolveKeyserverSessionInvalidationUsingNativeCredentials,
dispatchActionPromise,
Expand Down

0 comments on commit 6259ceb

Please sign in to comment.