From adc6c0491b5e9644c6cfa2fdd14feed3253a61de Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 21 Dec 2021 10:13:43 -0500 Subject: [PATCH] comment out CheckDownloadStatus loop in filebubble --- lib/widgets/filebubble.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index d63b28cd..f25b170e 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -45,17 +45,17 @@ class FileBubbleState extends State { @override Widget build(BuildContext context) { - var fromMe = Provider.of(context).senderHandle == Provider.of(context).onion; + var fromMe = Provider.of(context, listen: false).senderHandle == Provider.of(context).onion; var flagStarted = Provider.of(context).attributes["file-downloaded"] == "true"; var borderRadiousEh = 15.0; - var showFileSharing = Provider.of(context).isExperimentEnabled(FileSharingExperiment); + var showFileSharing = Provider.of(context, listen: false).isExperimentEnabled(FileSharingExperiment); var prettyDate = DateFormat.yMd(Platform.localeName).add_jm().format(Provider.of(context).timestamp); var downloadComplete = Provider.of(context).downloadComplete(widget.fileKey()); var downloadInterrupted = Provider.of(context).downloadInterrupted(widget.fileKey()); - if (flagStarted && !downloadInterrupted) { + /*if (flagStarted && !downloadInterrupted) { Provider.of(context, listen: false).cwtch.CheckDownloadStatus(Provider.of(context, listen: false).onion, widget.fileKey()); - } + }*/ var path = Provider.of(context).downloadFinalPath(widget.fileKey()); if (downloadComplete) {