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, );