File signal-desktop-remove-heif-support.patch of Package signal-desktop

Index: Signal-Desktop-5.33.0/app/main.ts
===================================================================
--- Signal-Desktop-5.33.0.orig/app/main.ts	2022-02-24 02:22:56.000000000 +0100
+++ Signal-Desktop-5.33.0/app/main.ts	2022-02-24 09:43:31.210276291 +0100
@@ -94,7 +94,6 @@ import { NativeThemeNotifier } from '../
 import { PowerChannel } from '../ts/main/powerChannel';
 import { SettingsChannel } from '../ts/main/settingsChannel';
 import { maybeParseUrl, setUrlSearchParams } from '../ts/util/url';
-import { getHeicConverter } from '../ts/workers/heicConverterMain';
 
 import type { LocaleDirection, LocaleType } from './locale';
 import { load as loadLocale } from './locale';
@@ -208,7 +207,6 @@ let sqlInitTimeStart = 0;
 let sqlInitTimeEnd = 0;
 
 const sql = new MainSQL();
-const heicConverter = getHeicConverter();
 
 async function getSpellCheckSetting(): Promise<boolean> {
   const value = ephemeralConfig.get('spell-check');
@@ -796,11 +794,6 @@ ipc.on('set-is-call-active', (_event, is
   mainWindow.webContents.setBackgroundThrottling(backgroundThrottling);
 });
 
-ipc.on('convert-image', async (event, uuid, data) => {
-  const { error, response } = await heicConverter(uuid, data);
-  event.reply(`convert-image:${uuid}`, { error, response });
-});
-
 let isReadyForUpdates = false;
 async function readyForUpdates() {
   if (isReadyForUpdates) {
Index: Signal-Desktop-5.33.0/ts/types/MIME.ts
===================================================================
--- Signal-Desktop-5.33.0.orig/ts/types/MIME.ts	2022-02-24 02:22:56.000000000 +0100
+++ Signal-Desktop-5.33.0/ts/types/MIME.ts	2022-02-24 09:43:31.210276291 +0100
@@ -28,10 +28,7 @@ export const VIDEO_QUICKTIME = stringToM
 export const TEXT_ATTACHMENT = stringToMIMEType('text/x-signal-story');
 
 export const isHeic = (value: string, fileName: string): boolean =>
-  value === 'image/heic' ||
-  value === 'image/heif' ||
-  fileName.endsWith('.heic') ||
-  fileName.endsWith('.heif');
+  false
 export const isGif = (value: string): value is MIMEType =>
   value === 'image/gif';
 export const isJPEG = (value: string): value is MIMEType =>
openSUSE Build Service is sponsored by