fixed bug on loading incoming shared vidoes
This commit is contained in:
parent
0e3d6afc76
commit
146c1c9813
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue