Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3559495
D5062.id16527.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
681 B
Referenced Files
None
Subscribers
None
D5062.id16527.diff
View Options
diff --git a/keyserver/src/responders/message-responders.js b/keyserver/src/responders/message-responders.js
--- a/keyserver/src/responders/message-responders.js
+++ b/keyserver/src/responders/message-responders.js
@@ -118,8 +118,11 @@
viewer: Viewer,
request: SendMultimediaMessageRequest,
): Promise<SendMessageResponse> {
- invariant(request.mediaIDs);
- const { threadID, localID, mediaIDs } = request;
+ const { threadID, localID } = request;
+ const mediaIDs = request.mediaIDs
+ ? request.mediaIDs
+ : request.mediaMessageContents.map(contents => contents.uploadID);
+
if (mediaIDs.length === 0) {
throw new ServerError('invalid_parameters');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 6:13 AM (7 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2724176
Default Alt Text
D5062.id16527.diff (681 B)
Attached To
Mode
D5062: [keyserver] Modify `legacyMultimediaMessageCreationResponder` to handle new payload
Attached
Detach File
Event Timeline
Log In to Comment