We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1910d02 commit b7f0146Copy full SHA for b7f0146
c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests/ChatTests.cs
@@ -181,7 +181,9 @@ public async Task TestGetUnreadMessagesCounts()
181
182
await Task.Delay(6000);
183
184
- Assert.True(TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts(limit: 50)).Any(x => x.ChannelId == testChannel.Id && x.Count > 0));
+ var unreads =
185
+ TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts(filter:$"channel.id LIKE \"{testChannel.Id}\""));
186
+ Assert.True(unreads.Any(x => x.ChannelId == testChannel.Id && x.Count == 4));
187
188
await testChannel.Delete(false);
189
}
0 commit comments