mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Use genId + uploadedId instead of just genId for value key to make sure all keys are unique when opening a public link in-app (genID is null for all files in public link)
This commit is contained in:
parent
df68d3f005
commit
cc674183cd
@ -27,7 +27,9 @@ class FileWidget extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
// Specify key to ensure that the widget is rebuilt when the file changes
|
||||
// Before changing this, ensure that file deletes are handled properly
|
||||
final String fileKey = "file_${file.generatedID}";
|
||||
|
||||
final String fileKey =
|
||||
"file_genID_${file.generatedID}___file_id_${file.uploadedFileID}";
|
||||
if (file.fileType == FileType.livePhoto ||
|
||||
file.fileType == FileType.image) {
|
||||
return ZoomableLiveImageNew(
|
||||
|
Loading…
x
Reference in New Issue
Block a user