🚸 Prevent user from sending empty message

This commit is contained in:
LittleSheep 2024-08-07 19:02:49 +08:00
parent 4562c2f991
commit 138da60e55

View File

@ -129,6 +129,8 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
client = auth.configureClient('messaging');
if (_textController.text.trim().isEmpty && _attachments.isEmpty) return;
const uuid = Uuid();
final payload = {
'uuid': uuid.v4(),