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

--- Signal-Desktop-7.68.0/app/main.ts.orig	2025-08-27 22:37:21.000000000 +0200
+++ Signal-Desktop-7.68.0/app/main.ts	2025-08-28 07:06:35.858190154 +0200
@@ -108,7 +108,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';
@@ -295,7 +294,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');
@@ -1111,11 +1109,6 @@ ipc.on('set-is-call-active', (_event, is
   preventDisplaySleepService.setEnabled(isCallActive);
 });
 
-ipc.on('convert-image', async (event, uuid, data) => {
-  const { error, response } = await heicConverter(uuid, data);
-  event.reply(`convert-image:${uuid}`, { error, response });
-});
-
 ipc.on('prompt-os-auth', async (event, { reason, localeString }) => {
   log.info(`Prompt for OS auth reason=${reason}`);
   const result = await promptOSAuth({ reason, localeString });
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.toLowerCase().endsWith('.heic') ||
-  fileName.toLowerCase().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