fixed bug on loading incoming shared vidoes

This commit is contained in:
ashilkn 2022-09-26 13:18:18 +05:30
parent 0e3d6afc76
commit 146c1c9813

View file

@ -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) {