Bulletproof getNumberInfo against missing ourNumber
This commit is contained in:
parent
11fdf22881
commit
447a217397
1 changed files with 4 additions and 0 deletions
|
@ -893,6 +893,10 @@
|
||||||
getNumberInfo(options = {}) {
|
getNumberInfo(options = {}) {
|
||||||
const { syncMessage, disableMeCheck } = options;
|
const { syncMessage, disableMeCheck } = options;
|
||||||
|
|
||||||
|
if (!this.ourNumber) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// START: this code has an Expiration date of ~2018/11/21
|
// START: this code has an Expiration date of ~2018/11/21
|
||||||
// We don't want to enable unidentified delivery for send unless it is
|
// We don't want to enable unidentified delivery for send unless it is
|
||||||
// also enabled for our own account.
|
// also enabled for our own account.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue