Skip to content

Commit

Permalink
Fixed setLastReadMessageTimetoken and markAllMessagesAsRead functions…
Browse files Browse the repository at this point in the history
… so that proper value of METADATA_LAST_READ_MESSAGE_TIMETOKEN is stored.
  • Loading branch information
marcin-cebo committed Dec 12, 2024
1 parent ad85b18 commit 45dc7e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class ChatIntegrationTest : BaseChatIntegrationTest() {
val channelId02 = channel02.id
val membership01: ChannelMembershipInput = PNChannelMembership.Partial(channelId01, custom)
val membership02: ChannelMembershipInput = PNChannelMembership.Partial(channelId02)
chat.pubNub.setMemberships(listOf(membership01, membership02), chat.currentUser.id).await()
chat.pubNub.setMemberships(channels = listOf(membership01, membership02), uuid = chat.currentUser.id, includeType = false).await()

// to each channel add two messages(we want to check if last message will be taken by fetchMessages with limit = 1)
channel01.sendText("message01In$channelId01").await()
Expand Down

0 comments on commit 45dc7e9

Please sign in to comment.