|
@@ -6,6 +6,7 @@ import 'package:chewie/chewie.dart';
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:logging/logging.dart';
|
|
|
+import 'package:photos/core/configuration.dart';
|
|
|
import 'package:photos/core/constants.dart';
|
|
|
import 'package:photos/models/file.dart';
|
|
|
import 'package:photos/services/files_service.dart';
|
|
@@ -71,7 +72,8 @@ class _VideoWidgetState extends State<VideoWidget> {
|
|
|
}
|
|
|
|
|
|
void _setFileSizeIfNull() {
|
|
|
- if (widget.file.fileSize == null) {
|
|
|
+ if (widget.file.fileSize == null &&
|
|
|
+ widget.file.ownerID == Configuration.instance.getUserID()) {
|
|
|
FilesService.instance
|
|
|
.getFileSize(widget.file.uploadedFileID)
|
|
|
.then((value) {
|