Username recovery improvements

This commit is contained in:
Fedor Indutny 2024-02-06 10:35:59 -08:00 committed by GitHub
parent a70ae1060d
commit 533a1b32d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 423 additions and 99 deletions

View file

@ -44,6 +44,7 @@ installSetting('callRingtoneNotification');
installSetting('callSystemNotification');
installSetting('countMutedConversations');
installSetting('deviceName');
installSetting('phoneNumber');
installSetting('hasStoriesDisabled');
installSetting('hideMenuBar');
installSetting('incomingCallNotification');

View file

@ -28,6 +28,7 @@ SettingsWindowProps.onRender(
customColors,
defaultConversationColor,
deviceName,
phoneNumber,
doDeleteAllData,
doneRendering,
editCustomColor,
@ -129,6 +130,7 @@ SettingsWindowProps.onRender(
customColors={customColors}
defaultConversationColor={defaultConversationColor}
deviceName={deviceName}
phoneNumber={phoneNumber}
doDeleteAllData={doDeleteAllData}
doneRendering={doneRendering}
editCustomColor={editCustomColor}

View file

@ -31,6 +31,7 @@ const settingCallRingtoneNotification = createSetting(
const settingCallSystemNotification = createSetting('callSystemNotification');
const settingCountMutedConversations = createSetting('countMutedConversations');
const settingDeviceName = createSetting('deviceName', { setter: false });
const settingPhoneNumber = createSetting('phoneNumber', { setter: false });
const settingHideMenuBar = createSetting('hideMenuBar');
const settingIncomingCallNotification = createSetting(
'incomingCallNotification'
@ -163,6 +164,7 @@ async function renderPreferences() {
isPhoneNumberSharingSupported,
lastSyncTime,
notificationContent,
phoneNumber,
selectedCamera,
selectedMicrophone,
selectedSpeaker,
@ -205,6 +207,7 @@ async function renderPreferences() {
isPhoneNumberSharingSupported: ipcPNP(),
lastSyncTime: settingLastSyncTime.getValue(),
notificationContent: settingNotificationSetting.getValue(),
phoneNumber: settingPhoneNumber.getValue(),
selectedCamera: settingVideoInput.getValue(),
selectedMicrophone: settingAudioInput.getValue(),
selectedSpeaker: settingAudioOutput.getValue(),
@ -275,6 +278,7 @@ async function renderPreferences() {
lastSyncTime,
localeOverride,
notificationContent,
phoneNumber,
preferredSystemLocales,
resolvedLocale,
selectedCamera,