signal-desktop/ts/windows/preload.ts

69 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');
// 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');
2022-07-20 00:47:05 +00:00
installCallback('isPhoneNumberSharingEnabled');
installCallback('isPrimary');
installCallback('syncRequest');
2021-08-18 20:08:14 +00:00
installSetting('alwaysRelayCalls');
installSetting('audioMessage');
2021-08-18 20:08:14 +00:00
installSetting('audioNotification');
2023-12-18 23:22:46 +00:00
installSetting('autoConvertEmoji');
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');
2023-11-06 21:19:23 +00:00
installSetting('localeOverride');
2021-08-18 20:08:14 +00:00
installSetting('notificationDrawAttention');
installSetting('notificationSetting');
installSetting('spellCheck');
installSetting('systemTraySetting');
installSetting('sentMediaQualitySetting');
2023-12-08 23:26:08 +00:00
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');