Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3103237
D13794.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.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
Thu, Oct 31, 12:22 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2387711
Default Alt Text
D13794.diff (2 KB)
Attached To
Mode
D13794: [lib] Add staff alert for decryption related errors
Attached
Detach File
Event Timeline
Log In to Comment