From 279f32b13deb45f3fe0ab2d32f6d2a0ea6e224e5 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 7 Apr 2016 18:54:48 -0700 Subject: send file sync packets for all known file operations --- include/import.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 3525ee948..f15dedfe0 100644 --- a/include/import.php +++ b/include/import.php @@ -890,6 +890,11 @@ function sync_files($channel,$files) { $attachment_stored = false; foreach($f['attach'] as $att) { + if($att['deleted']) { + attach_delete($channel,$att['hash']); + continue; + } + $attach_exists = false; $x = attach_by_hash($att['hash']); -- cgit v1.2.3