Adds a pop and whoosh sound for message receive/sent
This commit is contained in:
@@ -38,6 +38,7 @@ installCallback('shouldShowStoriesSettings');
|
||||
installCallback('syncRequest');
|
||||
|
||||
installSetting('alwaysRelayCalls');
|
||||
installSetting('audioMessage');
|
||||
installSetting('audioNotification');
|
||||
installSetting('autoDownloadUpdate');
|
||||
installSetting('autoLaunch');
|
||||
|
@@ -44,6 +44,7 @@ SettingsWindowProps.onRender(
|
||||
hasLinkPreviews,
|
||||
hasMediaCameraPermissions,
|
||||
hasMediaPermissions,
|
||||
hasMessageAudio,
|
||||
hasMinimizeToAndStartInSystemTray,
|
||||
hasMinimizeToSystemTray,
|
||||
hasNotificationAttention,
|
||||
@@ -55,7 +56,6 @@ SettingsWindowProps.onRender(
|
||||
hasTextFormatting,
|
||||
hasTypingIndicators,
|
||||
initialSpellCheckSetting,
|
||||
isAudioNotificationsSupported,
|
||||
isAutoDownloadUpdatesSupported,
|
||||
isAutoLaunchSupported,
|
||||
isFormattingFlagEnabled,
|
||||
@@ -80,6 +80,7 @@ SettingsWindowProps.onRender(
|
||||
onLastSyncTimeChange,
|
||||
onMediaCameraPermissionsChange,
|
||||
onMediaPermissionsChange,
|
||||
onMessageAudioChange,
|
||||
onMinimizeToAndStartInSystemTrayChange,
|
||||
onMinimizeToSystemTrayChange,
|
||||
onNotificationAttentionChange,
|
||||
@@ -141,6 +142,7 @@ SettingsWindowProps.onRender(
|
||||
hasLinkPreviews={hasLinkPreviews}
|
||||
hasMediaCameraPermissions={hasMediaCameraPermissions}
|
||||
hasMediaPermissions={hasMediaPermissions}
|
||||
hasMessageAudio={hasMessageAudio}
|
||||
hasMinimizeToAndStartInSystemTray={hasMinimizeToAndStartInSystemTray}
|
||||
hasMinimizeToSystemTray={hasMinimizeToSystemTray}
|
||||
hasNotificationAttention={hasNotificationAttention}
|
||||
@@ -153,7 +155,6 @@ SettingsWindowProps.onRender(
|
||||
hasTypingIndicators={hasTypingIndicators}
|
||||
i18n={i18n}
|
||||
initialSpellCheckSetting={initialSpellCheckSetting}
|
||||
isAudioNotificationsSupported={isAudioNotificationsSupported}
|
||||
isAutoDownloadUpdatesSupported={isAutoDownloadUpdatesSupported}
|
||||
isAutoLaunchSupported={isAutoLaunchSupported}
|
||||
isFormattingFlagEnabled={isFormattingFlagEnabled}
|
||||
@@ -180,6 +181,7 @@ SettingsWindowProps.onRender(
|
||||
onLastSyncTimeChange={onLastSyncTimeChange}
|
||||
onMediaCameraPermissionsChange={onMediaCameraPermissionsChange}
|
||||
onMediaPermissionsChange={onMediaPermissionsChange}
|
||||
onMessageAudioChange={onMessageAudioChange}
|
||||
onMinimizeToAndStartInSystemTrayChange={
|
||||
onMinimizeToAndStartInSystemTrayChange
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ function doneRendering() {
|
||||
ipcRenderer.send('settings-done-rendering');
|
||||
}
|
||||
|
||||
const settingMessageAudio = createSetting('audioMessage');
|
||||
const settingAudioNotification = createSetting('audioNotification');
|
||||
const settingAutoDownloadUpdate = createSetting('autoDownloadUpdate');
|
||||
const settingAutoLaunch = createSetting('autoLaunch');
|
||||
@@ -152,6 +153,7 @@ async function renderPreferences() {
|
||||
hasLinkPreviews,
|
||||
hasMediaCameraPermissions,
|
||||
hasMediaPermissions,
|
||||
hasMessageAudio,
|
||||
hasNotificationAttention,
|
||||
hasReadReceipts,
|
||||
hasRelayCalls,
|
||||
@@ -193,6 +195,7 @@ async function renderPreferences() {
|
||||
hasLinkPreviews: settingLinkPreview.getValue(),
|
||||
hasMediaCameraPermissions: settingMediaCameraPermissions.getValue(),
|
||||
hasMediaPermissions: settingMediaPermissions.getValue(),
|
||||
hasMessageAudio: settingMessageAudio.getValue(),
|
||||
hasNotificationAttention: settingNotificationDrawAttention.getValue(),
|
||||
hasReadReceipts: settingReadReceipts.getValue(),
|
||||
hasRelayCalls: settingRelayCalls.getValue(),
|
||||
@@ -253,6 +256,7 @@ async function renderPreferences() {
|
||||
hasLinkPreviews,
|
||||
hasMediaCameraPermissions,
|
||||
hasMediaPermissions,
|
||||
hasMessageAudio,
|
||||
hasMinimizeToAndStartInSystemTray,
|
||||
hasMinimizeToSystemTray,
|
||||
hasNotificationAttention,
|
||||
@@ -293,7 +297,6 @@ async function renderPreferences() {
|
||||
shouldShowStoriesSettings,
|
||||
|
||||
// Limited support features
|
||||
isAudioNotificationsSupported: Settings.isAudioNotificationSupported(OS),
|
||||
isAutoDownloadUpdatesSupported: Settings.isAutoDownloadUpdatesSupported(OS),
|
||||
isAutoLaunchSupported: Settings.isAutoLaunchSupported(OS),
|
||||
isHideMenuBarSupported: Settings.isHideMenuBarSupported(OS),
|
||||
@@ -347,6 +350,7 @@ async function renderPreferences() {
|
||||
onMediaCameraPermissionsChange: attachRenderCallback(
|
||||
settingMediaCameraPermissions.setValue
|
||||
),
|
||||
onMessageAudioChange: attachRenderCallback(settingMessageAudio.setValue),
|
||||
onMinimizeToAndStartInSystemTrayChange: attachRenderCallback(
|
||||
async (value: boolean) => {
|
||||
await settingSystemTraySetting.setValue(
|
||||
|
Reference in New Issue
Block a user