diff --git a/lib/views/messageview.dart b/lib/views/messageview.dart index 93003515..7c029a11 100644 --- a/lib/views/messageview.dart +++ b/lib/views/messageview.dart @@ -81,7 +81,7 @@ class _MessageViewState extends State { @override Widget build(BuildContext context) { // After leaving a conversation the selected conversation is set to null... - if (Provider.of(context).profileOnion == "") { + if (Provider.of(context, listen: false).profileOnion == "") { return Card(child: Center(child: Text(AppLocalizations.of(context)!.addContactFirst))); }