You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a `readsOf(message: Message)` extension function to the `Channel` class. This function returns a list of `ChannelUserRead` objects for users who have read the given message, excluding the message sender.
Also includes:
- Adding corresponding unit tests for the new function.
- Renaming `ChannelExtensionsTests.kt` to `ChannelExtensionTest.kt`.
- Migrating existing tests from `kluent` to `JUnit Jupiter` assertions.
Copy file name to clipboardExpand all lines: stream-chat-android-client/api/stream-chat-android-client.api
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2664,6 +2664,7 @@ public final class io/getstream/chat/android/client/extensions/ChannelExtensionK
2664
2664
public static final fun isArchive (Lio/getstream/chat/android/models/Channel;)Z
2665
2665
public static final fun isMutedFor (Lio/getstream/chat/android/models/Channel;Lio/getstream/chat/android/models/User;)Z
2666
2666
public static final fun isPinned (Lio/getstream/chat/android/models/Channel;)Z
2667
+
public static final fun readsOf (Lio/getstream/chat/android/models/Channel;Lio/getstream/chat/android/models/Message;)Ljava/util/List;
2667
2668
public static final fun syncUnreadCountWithReads (Lio/getstream/chat/android/models/Channel;Ljava/lang/String;)Lio/getstream/chat/android/models/Channel;
2668
2669
public static synthetic fun syncUnreadCountWithReads$default (Lio/getstream/chat/android/models/Channel;Ljava/lang/String;ILjava/lang/Object;)Lio/getstream/chat/android/models/Channel;
2669
2670
public static final fun userRead (Lio/getstream/chat/android/models/Channel;Ljava/lang/String;)Lio/getstream/chat/android/models/ChannelUserRead;
Copy file name to clipboardExpand all lines: stream-chat-android-client/src/test/java/io/getstream/chat/android/client/extensions/ChannelExtensionTest.kt
0 commit comments