whenMessageContent

inline fun <T> ResendableContent.whenMessageContent(block: (MessageContent) -> T): T?