🚸 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');
|
client = auth.configureClient('messaging');
|
||||||
|
|
||||||
|
if (_textController.text.trim().isEmpty && _attachments.isEmpty) return;
|
||||||
|
|
||||||
const uuid = Uuid();
|
const uuid = Uuid();
|
||||||
final payload = {
|
final payload = {
|
||||||
'uuid': uuid.v4(),
|
'uuid': uuid.v4(),
|
||||||
|
Loading…
Reference in New Issue
Block a user