🚸 Prevent user from sending empty message
This commit is contained in:
parent
4562c2f991
commit
138da60e55
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user