function sendable
sendable(draft: string): boolean

Checks whether draft can be sent or saved. Like the server, it measures the trimmed text.

Parameters

draft: string

Return Type

boolean

Usage

import { sendable } from "src/utils/chat/message.ts";