Story view receipts setting
This commit is contained in:
parent
ad42d98774
commit
3702a67975
21 changed files with 161 additions and 35 deletions
|
@ -68,6 +68,7 @@ export type IPCEventsValuesType = {
|
|||
themeSetting: ThemeType;
|
||||
universalExpireTimer: number;
|
||||
zoomFactor: ZoomFactorType;
|
||||
storyViewReceiptsEnabled: boolean;
|
||||
|
||||
// Optional
|
||||
mediaPermissions: boolean;
|
||||
|
@ -193,6 +194,16 @@ export function createIPCEvents(
|
|||
account.captureChange('hasStoriesDisabled');
|
||||
window.textsecure.server?.onHasStoriesDisabledChange(value);
|
||||
},
|
||||
getStoryViewReceiptsEnabled: () => {
|
||||
return (
|
||||
window.storage.get('storyViewReceiptsEnabled') ??
|
||||
window.storage.get('read-receipt-setting') ??
|
||||
false
|
||||
);
|
||||
},
|
||||
setStoryViewReceiptsEnabled: async (value: boolean) => {
|
||||
await window.storage.put('storyViewReceiptsEnabled', value);
|
||||
},
|
||||
|
||||
getPreferredAudioInputDevice: () =>
|
||||
window.storage.get('preferred-audio-input-device'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue