This commit disables the send message action when the text box is empty, thus preventing the user from sending an empty text message.
Type: fix
Differential D111
Prevent user from sending an empty message tusooa on Jul 8 2024, 9:03 PM. Authored by Tags None Referenced Files
Subscribers
Details
This commit disables the send message action when the text box is empty, thus preventing the user from sending an empty text message. Type: fix Verify unit tests pass. Verify that the send message button is greyed out if the text box is empty. Verify that when you hit Ctrl+Enter when the text box is empty, no message is sent.
Diff Detail
Event TimelineComment Actions Why should users be prevented from sending empty messages? Matrix Spec does not seem to have a restriction on this, and Element also supports receiving empty messages. Comment Actions I just feel it's rather useless to send an empty message and it's easy for me to misclick Ctrl+Enter |