Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3519340
D13352.id.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
D13352.id.diff
View Options
diff --git a/lib/shared/dm-ops/process-dm-ops.js b/lib/shared/dm-ops/process-dm-ops.js
--- a/lib/shared/dm-ops/process-dm-ops.js
+++ b/lib/shared/dm-ops/process-dm-ops.js
@@ -332,6 +332,8 @@
const allPeerUserIDAndDeviceIDs = useSelector(getAllPeerUserIDAndDeviceIDs);
const currentUserInfo = useSelector(state => state.currentUserInfo);
const utilities = useSendDMOperationUtils();
+ const { processOutboundMessages } = usePeerToPeerCommunication();
+ const localMessageInfos = useSelector(state => state.messageStore.local);
return React.useCallback(
async (
@@ -341,6 +343,15 @@
const { op, composableMessageID, recipients } = dmOperationSpecification;
+ const localMessageInfo = localMessageInfos[composableMessageID];
+ if (
+ localMessageInfo?.outboundP2PMessageIDs &&
+ localMessageInfo.outboundP2PMessageIDs.length > 0
+ ) {
+ processOutboundMessages(localMessageInfo.outboundP2PMessageIDs, dmOpID);
+ return promise;
+ }
+
const outboundP2PMessages = await createMessagesToPeersFromDMOp(
op,
recipients,
@@ -376,6 +387,8 @@
currentUserInfo,
dispatchWithMetadata,
getDMOpsSendingPromise,
+ localMessageInfos,
+ processOutboundMessages,
threadInfos,
utilities,
],
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 9:54 PM (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696759
Default Alt Text
D13352.id.diff (1 KB)
Attached To
Mode
D13352: [lib] fix sending retried message twice
Attached
Detach File
Event Timeline
Log In to Comment