File signal-desktop-remove-heif-support.patch of Package signal-desktop-fastshare
--- Signal-Desktop-7.77.1/app/main.main.ts.orig 2025-10-30 22:17:18.000000000 +0100
+++ Signal-Desktop-7.77.1/app/main.main.ts 2025-10-31 18:43:32.859204441 +0100
@@ -117,7 +117,6 @@ import { NativeThemeNotifier } from '../
import { PowerChannel } from '../ts/main/powerChannel.main.js';
import { SettingsChannel } from '../ts/main/settingsChannel.main.js';
import { maybeParseUrl, setUrlSearchParams } from '../ts/util/url.std.js';
-import { getHeicConverter } from '../ts/workers/heicConverterMain.main.js';
import type { LocaleDirection, LocaleType } from './locale.node.js';
import { load as loadLocale } from './locale.node.js';
@@ -312,7 +311,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');
@@ -1128,11 +1126,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.std.ts 2022-02-24 02:22:56.000000000 +0100
+++ Signal-Desktop-5.33.0/ts/types/MIME.std.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 =>