mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(app): write the first voice session restore snapshot on startup (#1974)
This commit is contained in:
1 parent
fdd12194b1
commit
a0d4a33fd4
1 file changed
+2
-2
@@ -62,10 +62,10 @@ export function saveCurrentVoiceSessionRestoreSnapshot(): void {
|
||||
}
|
||||
|
||||
export function createVoiceSessionRestoreSync(): VoiceSessionRestoreSyncHandle {
|
||||
let previousState = readVoiceSessionRestoreSyncState();
|
||||
let previousState: VoiceSessionRestoreSyncState | null = null;
|
||||
const syncVoiceSessionRestore = () => {
|
||||
const currentState = readVoiceSessionRestoreSyncState();
|
||||
if (areVoiceSessionRestoreSyncStatesEqual(previousState, currentState)) {
|
||||
if (previousState !== null && areVoiceSessionRestoreSyncStatesEqual(previousState, currentState)) {
|
||||
return;
|
||||
}
|
||||
previousState = currentState;
|
||||
|
||||
Reference in new issue
Block a user