[signalapp/Signal-Desktop#7403] use fromSeconds when setting universalExpireTimer
Co-authored-by: odpay <odpay@odpay.net>
This commit is contained in:
parent
2e620496ef
commit
02b2ef1183
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ export function SmartPreferences(): JSX.Element | null {
|
|||
|
||||
const universalExpireTimer = universalExpireTimerUtil.getForRedux(items);
|
||||
const onUniversalExpireTimerChange = async (newValue: number) => {
|
||||
await universalExpireTimerUtil.set(DurationInSeconds.fromMillis(newValue));
|
||||
await universalExpireTimerUtil.set(DurationInSeconds.fromSeconds(newValue));
|
||||
|
||||
// Update account in Storage Service
|
||||
const account = window.ConversationController.getOurConversationOrThrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue