console icon indicating copy to clipboard operation
console copied to clipboard

🐛 Bug Report: Don't Allow Empty Title & Message Body for Messaging

Open ItzNotABug opened this issue 1 year ago • 3 comments

👟 Reproduction steps

Currently it seems possible to use only white space to compose an empty Subject/Title & Message Body. This causes one to send a completely empty message which may not be right (atleast for Push Notifs).

👍 Expected behavior

Don't allow sending empty messages.

👎 Actual Behavior

We can send empty messages.

🎲 Appwrite version

Version 1.5.x

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

ItzNotABug avatar Mar 16 '24 08:03 ItzNotABug

Can reproduce this. And it seems to also be the case for email and sms.

See recording below:

https://github.com/appwrite/console/assets/67555014/915e571d-cf44-44df-9a18-c16273340c4a

FatumaA avatar May 09 '24 12:05 FatumaA

I'd like to look into this

FatumaA avatar May 21 '24 14:05 FatumaA