Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3516889
D13432.id44506.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
731 B
Referenced Files
None
Subscribers
None
D13432.id44506.diff
View Options
diff --git a/lib/shared/dm-ops/dm-op-utils.js b/lib/shared/dm-ops/dm-op-utils.js
--- a/lib/shared/dm-ops/dm-op-utils.js
+++ b/lib/shared/dm-ops/dm-op-utils.js
@@ -139,6 +139,14 @@
userIDs.has(peer.userID),
);
} else if (recipients.type === 'all_thread_members') {
+ const { threadID } = recipients;
+ if (!threadInfos[threadID]) {
+ console.log(
+ `all_thread_members called for threadID ${threadID}, which is ` +
+ 'missing from the ThreadStore. if sending a message soon after ' +
+ 'thread creation, consider some_users instead',
+ );
+ }
const members = threadInfos[recipients.threadID]?.members ?? [];
const memberIDs = members.map(member => member.id);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 3:43 PM (14 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2695195
Default Alt Text
D13432.id44506.diff (731 B)
Attached To
Mode
D13432: [native] Add log for when all_thread_members is used for a thread missing from ThreadStore
Attached
Detach File
Event Timeline
Log In to Comment