Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3335981
D13794.id45436.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13794.id45436.diff
View Options
diff --git a/lib/tunnelbroker/use-peer-to-peer-message-handler.js b/lib/tunnelbroker/use-peer-to-peer-message-handler.js
--- a/lib/tunnelbroker/use-peer-to-peer-message-handler.js
+++ b/lib/tunnelbroker/use-peer-to-peer-message-handler.js
@@ -26,6 +26,7 @@
import { dmOperationSpecificationTypes } from '../shared/dm-ops/dm-op-utils.js';
import { useProcessDMOperation } from '../shared/dm-ops/process-dm-ops.js';
import { IdentityClientContext } from '../shared/identity-client-context.js';
+import { useStaffAlert } from '../shared/staff-utils.js';
import type { DeviceOlmInboundKeys } from '../types/identity-service-types.js';
import {
peerToPeerMessageTypes,
@@ -203,6 +204,8 @@
const resendPeerToPeerMessages = useResendPeerToPeerMessages();
const { createOlmSessionsWithUser } = usePeerOlmSessionsCreatorContext();
+ const { showAlertToStaff } = useStaffAlert();
+
return React.useCallback(
async (message: PeerToPeerMessage, messageID: string) => {
if (message.type === peerToPeerMessageTypes.OUTBOUND_SESSION_CREATION) {
@@ -276,6 +279,11 @@
`${senderDeviceID}: ${errorMessage}, ` +
`session version: ${sessionVersion}`,
);
+ showAlertToStaff(
+ 'Error creating inbound session with device ',
+ `${senderDeviceID}: ${errorMessage}, ` +
+ `session version: ${sessionVersion}`,
+ );
}
}
} else if (message.type === peerToPeerMessageTypes.ENCRYPTED_MESSAGE) {
@@ -314,6 +322,10 @@
'Error decrypting message from device ' +
`${message.senderInfo.deviceID}: ${errorMessage}`,
);
+ showAlertToStaff(
+ 'Error decrypting message from device ',
+ `${message.senderInfo.deviceID}: ${errorMessage}`,
+ );
if (
!errorMessage.includes(OLM_ERROR_FLAG) &&
@@ -431,6 +443,7 @@
identityClient,
olmAPI,
resendPeerToPeerMessages,
+ showAlertToStaff,
sqliteAPI,
],
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 1:18 PM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2561386
Default Alt Text
D13794.id45436.diff (2 KB)
Attached To
Mode
D13794: [lib] Add staff alert for decryption related errors
Attached
Detach File
Event Timeline
Log In to Comment