Skip to content

Commit

Permalink
Iteration
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
  • Loading branch information
Felix Weilbach authored and Felix Weilbach (Rebase PR Action) committed Mar 5, 2021
1 parent ef5abac commit 63dbb90
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/gui/tray/UserModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,14 +415,13 @@ void User::slotAddError(const QString &folderAlias, const QString &message, Erro

bool User::isValueableActivity(const Folder *folder, const SyncFileItemPtr &item) const
{
// Check if we are adding it to the right account and if it is useful information (protocol errors)
const auto isDifferentAccount = folder->accountState() != _account.data();
const auto isConflictFromOriginalFile = item->_status == SyncFileItem::Conflict && !Utility::isConflictFile(item->_file);

if (isDifferentAccount) {
// Ignore activity from a different account
if (folder->accountState() != _account.data()) {
return false;
}
if (isConflictFromOriginalFile) {

// We just care about conflict issues that we are able to resolve
if (item->_status == SyncFileItem::Conflict && !Utility::isConflictFile(item->_file)) {
return false;
}

Expand Down

0 comments on commit 63dbb90

Please sign in to comment.