Send compose only if text is not empty

This commit is contained in:
Julien Wadel 2023-04-11 15:14:31 +02:00
parent f6d2d3e9f1
commit 80bbcb0272

View file

@ -101,7 +101,7 @@ CREATE_PARENT_MODEL_FUNCTION(deleteChatRoom)
void ChatRoomProxyModel::compose (const QString& text) {
if (mChatRoomModel)
if (mChatRoomModel && !text.isEmpty())
mChatRoomModel->compose();
gCachedText = text;
}