core/sync: Always notify GUI of file deletion
core/sync: Always notify GUI of file deletion

  When synchronizing changes, we can permanently delete documents in a
  number of ways. This can happen if the user trashed the document on
  either side but it can also requested by the client itself when the
  parent folder was trashed on the remote for example.

  To make sure the list of synced files is always upadted in those
  situations, we need to fire a `deleted-file` event every time a file
  is deleted and not only when it was done following a user request.

  Also, since the list of synced documents only contains files, we don't
  emit this event when the deleted document is a folder.

cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop