Class ChannelKt
-
- All Implemented Interfaces:
public final class ChannelKt
-
-
Method Summary
Modifier and Type Method Description final static StringgetMembersStatusText(Channel $self, Context context, User currentUser)Returns a string describing the member status of the channel: either a member count for a group channel or the last seen text for a direct one-to-one conversation with the current user. final static MessagegetLastMessage(Channel $self)Returns channel's last regular or system message if exists. -
-
Method Detail
-
getMembersStatusText
final static String getMembersStatusText(Channel $self, Context context, User currentUser)
Returns a string describing the member status of the channel: either a member count for a group channel or the last seen text for a direct one-to-one conversation with the current user.
- Parameters:
context- The context to load string resources.currentUser- The currently logged in user.- Returns:
The text that represent the member status of the channel.
-
getLastMessage
final static Message getLastMessage(Channel $self)
Returns channel's last regular or system message if exists. Deleted and silent messages, as well as messages from shadow-banned users, are not taken into account.
- Returns:
Last message from the channel or null if it doesn't exist.
-
-
-
-