Skip to content

Commit

Permalink
Revert "[lib] Stop shimming Blob-hosted multimedia messages"
Browse files Browse the repository at this point in the history
This reverts commit 0b058dc.
  • Loading branch information
Ashoat committed Nov 8, 2024
1 parent 40822b3 commit f73497a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/shared/messages/multimedia-message-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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' &&
Expand Down

0 comments on commit f73497a

Please sign in to comment.