Restoration items should appear in the sync protocol
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 10 Oct 2019 11:21:28 +0000 (13:21 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:01 +0000 (10:59 +0100)
When an item is downloaded because it is restored, it shall be shown in the
sync protocol.
(It is also going to be shown in the not synchronized for a short while, but
that's fine)

src/libsync/syncfileitem.h

index dddc79832b9c9897caf5f58d3e25ba315cce1405..36a6d925caa6b8b644e42a2492c121d528e2ca76 100644 (file)
@@ -190,7 +190,7 @@ public:
      */
     bool showInProtocolTab() const
     {
-        return !showInIssuesTab()
+        return (!showInIssuesTab() || _status == SyncFileItem::Restoration)
             // Don't show conflicts that were resolved as "not a conflict after all"
             && !(_instruction == CSYNC_INSTRUCTION_CONFLICT && _status == SyncFileItem::Success);
     }