remove channel.query

This commit is contained in:
Salvatore Giordano
2020-11-09 10:41:05 +01:00
parent 7740932f2f
commit 59359784fb
6 changed files with 59 additions and 73 deletions
+4 -9
View File
@@ -184,15 +184,10 @@ class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {
.where((e) => e.user?.id != user.id)
.where((e) => e.message.silent != true)
.listen((event) async {
var channel = client.state.channels[event.cid];
if (channel == null) {
channel = client.channel(
event.channelType,
id: event.channelId,
);
await channel.query();
}
final channel = client.channel(
event.channelType,
id: event.channelId,
);
client.showLocalNotification(
event.message,