Skip to content

Commit

Permalink
Fix renamed files thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
claucambra committed Jan 20, 2022
1 parent bbfb4b2 commit ed346af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
}

if(activity._fileAction != "file_deleted") {
auto remotePath = folder->remotePath() + activity._file;
auto remotePath = folder->remotePath();
remotePath.append(activity._fileAction == "file_renamed" ? item->_renameTarget : activity._file);
PreviewData preview;
preview._source = account()->url().toString() + QLatin1String("/index.php/apps/files/api/v1/thumbnail/150/150/") + remotePath;
activity._previews.append(preview);
Expand Down

0 comments on commit ed346af

Please sign in to comment.