mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Display SMS/MMS disclaimer in empty search results
This commit is contained in:
committed by
Scott Nonnenberg
parent
d1d53b645d
commit
80da8bb47b
@@ -177,6 +177,11 @@ export async function toAccountRecord(
|
||||
);
|
||||
accountRecord.linkPreviews = Boolean(window.storage.get('linkPreviews'));
|
||||
|
||||
const primarySendsSms = window.storage.get('primarySendsSms');
|
||||
if (primarySendsSms !== undefined) {
|
||||
accountRecord.primarySendsSms = Boolean(primarySendsSms);
|
||||
}
|
||||
|
||||
const PHONE_NUMBER_SHARING_MODE_ENUM =
|
||||
window.textsecure.protobuf.AccountRecord.PhoneNumberSharingMode;
|
||||
const phoneNumberSharingMode = parsePhoneNumberSharingMode(
|
||||
@@ -805,6 +810,7 @@ export async function mergeAccountRecord(
|
||||
readReceipts,
|
||||
sealedSenderIndicators,
|
||||
typingIndicators,
|
||||
primarySendsSms,
|
||||
} = accountRecord;
|
||||
|
||||
window.storage.put('read-receipt-setting', readReceipts);
|
||||
@@ -821,6 +827,10 @@ export async function mergeAccountRecord(
|
||||
window.storage.put('linkPreviews', linkPreviews);
|
||||
}
|
||||
|
||||
if (typeof primarySendsSms === 'boolean') {
|
||||
window.storage.put('primarySendsSms', primarySendsSms);
|
||||
}
|
||||
|
||||
const PHONE_NUMBER_SHARING_MODE_ENUM =
|
||||
window.textsecure.protobuf.AccountRecord.PhoneNumberSharingMode;
|
||||
let phoneNumberSharingModeToStore: PhoneNumberSharingMode;
|
||||
|
||||
Reference in New Issue
Block a user