Package com.getstream.sdk.chat.utils.extensions

Properties

Link copied to clipboard
val Attachment.imagePreviewUrl: String?

Functions

Link copied to clipboard
fun Message.getCreatedAtOrNull(): Date?
Link copied to clipboard
fun Message.getCreatedAtOrThrow(): Date
Link copied to clipboard
fun Attachment.getDisplayableName(): String?
Link copied to clipboard
fun Channel.isDirectMessaging(): Boolean
Link copied to clipboard
fun Message.isMine(chatClient: ChatClient): Boolean
fun Message.isMine(currentUser: User?): Boolean
Link copied to clipboard
fun Message.isModerationFailed(chatClient: ChatClient): Boolean
fun Message.isModerationFailed(currentUser: User?): Boolean
Link copied to clipboard
fun Context.onPermissionRequested(permission: String)

Saves to shared prefs that a permission has been requested.

Link copied to clipboard
fun MessageFooterVisibility.shouldShowMessageFooter(    message: Message,     isLastMessageInGroup: Boolean,     nextMessage: Message?): Boolean

Decides if we need to show the message footer (timestamp) below the message.

Link copied to clipboard
fun Context.wasPermissionRequested(permission: String): Boolean