Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ class ChatViewModelTest {
@Test
fun `isPlausibleLastReadMessageId returns true within the buffer above the newest known message id`() {
assertTrue(
ChatViewModel.isPlausibleLastReadMessageId(messageId = 158761 + 2000, newestKnownRealMessageId = 158761L)
ChatViewModel.isPlausibleLastReadMessageId(
messageId = 158761 + 10_000,
newestKnownRealMessageId = 158761L
)
)
}

@Test
fun `isPlausibleLastReadMessageId returns false just beyond the buffer above the newest known message id`() {
assertFalse(
ChatViewModel.isPlausibleLastReadMessageId(
messageId = 158761 + 2000 + 1,
messageId = 158761 + 10_000 + 1,
newestKnownRealMessageId = 158761L
)
)
Expand Down
Loading