Page MenuHomePhabricator

D12379.diff
No OneTemporary

D12379.diff

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

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)

Event Timeline