Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3381883
D12379.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12379.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
@@ -184,13 +184,14 @@
console.log(
`Received invalid device list update for user ${message.userID}. Reason: ${result.reason}`,
);
- return;
+ } else {
+ console.log(
+ `Received valid device list update for user ${message.userID}`,
+ );
}
- console.log(
- `Received valid device list update for user ${message.userID}`,
- );
+ await getAndUpdateDeviceListsForUsers([message.userID]);
- if (message?.signedDeviceList?.rawDeviceList) {
+ if (result.valid && message?.signedDeviceList?.rawDeviceList) {
const receivedRawList = JSON.parse(
message.signedDeviceList.rawDeviceList,
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 6:58 AM (15 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596267
Default Alt Text
D12379.diff (1 KB)
Attached To
Mode
D12379: [lib] handle `DEVICE_LIST_UPDATED` message
Attached
Detach File
Event Timeline
Log In to Comment