From 80bbcb027210f9c52adcfc87854513ddb16c498a Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 11 Apr 2023 15:14:31 +0200 Subject: [PATCH] Send compose only if text is not empty --- linphone-app/src/components/chat-room/ChatRoomProxyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone-app/src/components/chat-room/ChatRoomProxyModel.cpp b/linphone-app/src/components/chat-room/ChatRoomProxyModel.cpp index fd37071b3..54babde06 100644 --- a/linphone-app/src/components/chat-room/ChatRoomProxyModel.cpp +++ b/linphone-app/src/components/chat-room/ChatRoomProxyModel.cpp @@ -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; }