signal-desktop/ts/windows/preload.ts

70 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2017 Signal Messenger, LLC
2021-08-18 20:08:14 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
import { installCallback, installSetting } from '../util/preload';
// ChatColorPicker redux hookups
installCallback('getCustomColors');
installCallback('getConversationsWithCustomColor');
installCallback('addCustomColor');
installCallback('editCustomColor');
installCallback('removeCustomColor');
installCallback('removeCustomColorOnConversations');
installCallback('resetAllChatColors');
installCallback('resetDefaultChatColor');
installCallback('setGlobalDefaultConversationColor');
installCallback('getDefaultConversationColor');
installCallback('persistZoomFactor');
installCallback('closeDB');
2021-08-18 20:08:14 +00:00
// Getters only. These are set by the primary device
installSetting('blockedCount', {
setter: false,
});
installSetting('linkPreviewSetting', {
setter: false,
});
installSetting('readReceiptSetting', {
setter: false,
});
installSetting('typingIndicatorSetting', {
setter: false,
});
installCallback('deleteAllMyStories');
installCallback('isFormattingFlagEnabled');
2022-07-20 00:47:05 +00:00
installCallback('isPhoneNumberSharingEnabled');
installCallback('isPrimary');
installCallback('shouldShowStoriesSettings');
installCallback('syncRequest');
2021-08-18 20:08:14 +00:00
installSetting('alwaysRelayCalls');
installSetting('audioNotification');
installSetting('autoDownloadUpdate');
2021-08-18 20:08:14 +00:00
installSetting('autoLaunch');
installSetting('callRingtoneNotification');
installSetting('callSystemNotification');
2022-07-20 00:47:05 +00:00
installSetting('countMutedConversations');
2021-08-18 20:08:14 +00:00
installSetting('deviceName');
installSetting('hasStoriesDisabled');
2021-08-18 20:08:14 +00:00
installSetting('hideMenuBar');
installSetting('incomingCallNotification');
2022-07-20 00:47:05 +00:00
installSetting('lastSyncTime');
2021-08-18 20:08:14 +00:00
installSetting('notificationDrawAttention');
installSetting('notificationSetting');
installSetting('spellCheck');
installSetting('systemTraySetting');
installSetting('sentMediaQualitySetting');
installSetting('textFormatting');
2021-08-18 20:08:14 +00:00
installSetting('themeSetting');
installSetting('universalExpireTimer');
installSetting('zoomFactor');
2023-02-23 21:32:19 +00:00
installSetting('phoneNumberDiscoverabilitySetting');
installSetting('phoneNumberSharingSetting');
2021-08-18 20:08:14 +00:00
// Media Settings
installCallback('getAvailableIODevices');
installSetting('preferredAudioInputDevice');
installSetting('preferredAudioOutputDevice');
installSetting('preferredVideoInputDevice');