Package-level declarations
Properties
The fallback preview URL for Giphy attachments when io.getstream.chat.android.ui.common.utils.giphyInfo is not available.
The image URL to display for link attachment previews.
The navigation URL for link attachments.
Functions
Small extension function designed to add a scheme to URLs that do not have one so that they can be opened using android.content.Intent.ACTION_VIEW
Waits until the client is ready for a user and returns them, or null if they disconnected in the meantime.
Returns true if the current user can cast another vote on this poll.
Create the default channel list filter for the given user.
The poll name to display: the translation into currentUser's language when autoTranslationEnabled and available, the original name otherwise.
The answer text to display, following the same rules as Poll.displayedName.
The option text to display, following the same rules as Poll.displayedName.
Generates a displayable name for the attachment. Builds the name using the following priority:
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.
Returns channel's last regular or system message if exists (including pending messages). Deleted and messages from shadow-banned users, are not taken into account.
Returns the subtitle for the poll based on the maximum number of votes allowed.
Finds a user in the list by their name or id.
Checks if the attachment is a link attachment.
Whether the poll name or any option has a translation into currentUser's language. Answers are not included, since each one is written by a different user.
Checks if the channel is a direct messaging channel.
Checks if the attachment upload has failed.
Checks if the channel is a direct conversation between the current user and some other user.
Checks if the attachment is currently being uploaded to the server.
Saves to shared prefs that a permission has been requested.
Decides if we need to show the message footer (timestamp) below the message.
Emits each time the connected user's session ends, which makes data cached for that user stale: on disconnect, or when a different user replaces them. A first connect, the same user connecting again and profile updates emit nothing.