Fix Settings window for linking stage
This commit is contained in:
parent
604563a3b4
commit
fbefbcea73
1 changed files with 11 additions and 3 deletions
|
@ -227,9 +227,17 @@ export function createIPCEvents(
|
|||
|
||||
getDeviceName: () => window.textsecure.storage.user.getDeviceName(),
|
||||
getPhoneNumber: () => {
|
||||
try {
|
||||
const e164 = window.textsecure.storage.user.getNumber();
|
||||
const parsedNumber = instance.parse(e164);
|
||||
return instance.format(parsedNumber, PhoneNumberFormat.INTERNATIONAL);
|
||||
} catch (error) {
|
||||
log.warn(
|
||||
'IPC.getPhoneNumber: failed to parse our E164',
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
return '';
|
||||
}
|
||||
},
|
||||
|
||||
getZoomFactor: () => {
|
||||
|
|
Loading…
Reference in a new issue