Skip to content

Commit

Permalink
Merge pull request Z-Hub#103 from matidau/fixstates-backendstorage
Browse files Browse the repository at this point in the history
fixstates skip IStateMachine::BACKENDSTORAGE for delete
  • Loading branch information
matidau authored Aug 19, 2024
2 parents 6575263 + afa8638 commit 446e046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/utils/zpushadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,9 @@ static public function FixStatesUserToStatesLinking($username=false, $deviceId=f
if ($obsoleteState['type'] === IStateMachine::DEVICEDATA)
continue;

if ($obsoleteState['type'] === IStateMachine::BACKENDSTORAGE)
continue;

if (!in_array($obsoleteState['uuid'], $knownUuids)) {
if (is_numeric($obsoleteState['counter']))
$obsoleteState['counter']++;
Expand Down

0 comments on commit 446e046

Please sign in to comment.