From c19b72c04229066fb2c53034bdbfa8b7bb79be59 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 29 Sep 2021 17:13:56 +0530 Subject: [PATCH] Update packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart Co-authored-by: Salvatore Giordano --- packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart b/packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart index d155ce4c..6068369a 100644 --- a/packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart +++ b/packages/stream_chat_flutter/lib/src/user_mentions_overlay.dart @@ -30,7 +30,7 @@ class UserMentionsOverlay extends StatefulWidget { 'Channel ${channel.cid} is not yet initialized', ), assert( - mentionAllAppUsers && client != null, + !mentionAllAppUsers || (mentionAllAppUsers && client != null), 'StreamChatClient is required in order to use mentionAllAppUsers', ), super(key: key);