Skip to content

Commit b7f0146

Browse files
One more unreads fix
1 parent 1910d02 commit b7f0146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests/ChatTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ public async Task TestGetUnreadMessagesCounts()
181181

182182
await Task.Delay(6000);
183183

184-
Assert.True(TestUtils.AssertOperation(await chat.GetUnreadMessagesCounts(limit: 50)).Any(x => x.ChannelId == testChannel.Id && x.Count > 0));
184+
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));
185187

186188
await testChannel.Delete(false);
187189
}

0 commit comments

Comments
 (0)