Would be better to check if the list contains a file with the id of the file we just pinned