-
- All Implemented Interfaces:
public final class ChannelExtensionKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanisAnonymousChannel(Channel $self)final static BooleanisMutedFor(Channel $self, User user)Checks if Channel is muted for user. final static List<User>getUsersExcludingCurrent(Channel $self, User currentUser)Returns a list of users that are members of the channel excluding the currently logged in user. final static List<Member>getMemberExcludingCurrent(Channel $self, User currentUser)Returns a list of members of the channel excluding the currently logged in user. final static IntegercountUnreadMentionsForUser(Channel $self, User user)Counts messages in which user is mentioned. -
-
Method Detail
-
isAnonymousChannel
final static Boolean isAnonymousChannel(Channel $self)
-
isMutedFor
final static Boolean isMutedFor(Channel $self, User user)
Checks if Channel is muted for user.
-
getUsersExcludingCurrent
final static List<User> getUsersExcludingCurrent(Channel $self, User currentUser)
Returns a list of users that are members of the channel excluding the currently logged in user.
- Parameters:
currentUser- The currently logged in user.
-
getMemberExcludingCurrent
final static List<Member> getMemberExcludingCurrent(Channel $self, User currentUser)
Returns a list of members of the channel excluding the currently logged in user.
- Parameters:
currentUser- The currently logged in user.
-
countUnreadMentionsForUser
final static Integer countUnreadMentionsForUser(Channel $self, User user)
Counts messages in which user is mentioned. The method relies on the Channel.messages list and doesn't do any API call. Therefore, the count might be not reliable as it relies on the local data.
- Parameters:
user- The User object for which unread mentions are counted.
-
-
-
-