getPreviewMessage

fun Channel.getPreviewMessage(currentUser: User?): Message?

Returns channel's last regular or system message if exists. Deleted and messages from shadow-banned users, are not taken into account.

Return

Last message from the channel or null if it doesn't exist.