Page MenuHomePhabricator

D5062.id.diff
No OneTemporary

D5062.id.diff

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, 'request.mediaIDs should be set');
- 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

Mime Type
text/plain
Expires
Sat, Dec 28, 6:12 AM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2724150
Default Alt Text
D5062.id.diff (715 B)

Event Timeline