remove window.getMessageTTL

pull/1151/head
Audric Ackermann 5 years ago
parent e45ef6f291
commit 81cb1122f8
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -269,8 +269,6 @@ window.setSettingValue = (settingID, value) => {
}
};
// Get the message TTL setting
window.getMessageTTL = () => window.storage.get('message-ttl', 24);
window.getMediaPermissions = () => ipc.sendSync('get-media-permissions');
// Auto update setting

1
ts/global.d.ts vendored

@ -52,7 +52,6 @@ interface Window {
toggleSpellCheck: any;
toggleLinkPreview: any;
toggleMediaPermissions: any;
getMessageTTL: () => number;
getSettingValue: any;
setSettingValue: any;

@ -23,7 +23,6 @@ export abstract class ContentMessage implements Message {
*/
protected getDefaultTTL(): number {
// 1 day default for any other message
return (window.getMessageTTL() || 24) * 60 * 60 * 1000;
return 24 * 60 * 60 * 1000;
}
}

Loading…
Cancel
Save