Page MenuHomePhabricator

D13325.diff
No OneTemporary

D13325.diff

diff --git a/lib/tunnelbroker/peer-to-peer-context.js b/lib/tunnelbroker/peer-to-peer-context.js
--- a/lib/tunnelbroker/peer-to-peer-context.js
+++ b/lib/tunnelbroker/peer-to-peer-context.js
@@ -194,7 +194,9 @@
);
await Promise.all(devicePromises);
- return Object.keys(sentMessagesMap);
+ // Returning messageIDs of failed messages.
+ const sentMessages = new Set(Object.keys(sentMessagesMap));
+ return messageIDs?.filter(id => !sentMessages.has(id)) ?? [];
}
const AUTOMATIC_RETRY_FREQUENCY = 30 * 1000;

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 3:24 AM (15 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698120
Default Alt Text
D13325.diff (524 B)

Event Timeline