From f73497ae9535b0e68f9fd8df96f02cc207c23f67 Mon Sep 17 00:00:00 2001 From: Ashoat Tevosyan Date: Thu, 7 Nov 2024 22:12:46 -0500 Subject: [PATCH] Revert "[lib] Stop shimming Blob-hosted multimedia messages" This reverts commit 0b058dcfae3484d8cae6d13622249c58586371e1. --- lib/shared/messages/multimedia-message-spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/shared/messages/multimedia-message-spec.js b/lib/shared/messages/multimedia-message-spec.js index f0b41020e9..08c5c76aee 100644 --- a/lib/shared/messages/multimedia-message-spec.js +++ b/lib/shared/messages/multimedia-message-spec.js @@ -51,7 +51,7 @@ import { } from '../../utils/message-ops-utils.js'; import { createMediaMessageInfo } from '../message-utils.js'; import { threadIsGroupChat } from '../thread-utils.js'; -import { NEXT_CODE_VERSION, hasMinCodeVersion } from '../version-utils.js'; +import { FUTURE_CODE_VERSION, hasMinCodeVersion } from '../version-utils.js'; type MultimediaMessageSpec = MessageSpec< MediaMessageData | ImagesMessageData, @@ -253,7 +253,7 @@ export const multimediaMessageSpec: MultimediaMessageSpec = Object.freeze({ ) { return messageInfo; } - if (hasMinCodeVersion(platformDetails, { native: NEXT_CODE_VERSION })) { + if (hasMinCodeVersion(platformDetails, { native: FUTURE_CODE_VERSION })) { return messageInfo; } @@ -292,6 +292,9 @@ export const multimediaMessageSpec: MultimediaMessageSpec = Object.freeze({ }; } else if (unwrapped.type === messageTypes.MULTIMEDIA) { for (const media of unwrapped.media) { + if (isMediaBlobServiceHosted(media)) { + return messageInfo; + } const { type } = media; if ( type !== 'photo' &&