Skip to content

Commit

Permalink
tw: use dayid for check
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Mar 11, 2024
1 parent d5400d7 commit f454701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Db/TimelineWrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public function processFile(
}

// If control reaches here, it's not a Live Photo video part
// But if prevRow exists and mapcluster is not set, it *was* a live video part
// But if prevRow exists and dayid is not set, it *was* a live video part
// In this case delete that entry (very rare edge case)
if ($prevRow && !\array_key_exists('mapcluster', $prevRow)) {
if ($prevRow && !\array_key_exists('dayid', $prevRow)) {
$this->livePhoto->deleteVideoPart($file);
$prevRow = null;
}
Expand Down

0 comments on commit f454701

Please sign in to comment.