From 2a57289e1855bc6bb78d80b4126dd9e1b76589a3 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Thu, 11 Sep 2025 15:51:46 +0200 Subject: [PATCH] disable splitview handle if readonly chat do not create notification if empty --- Linphone/core/notifier/Notifier.cpp | 4 ++++ Linphone/view/Page/Form/Chat/SelectedChatView.qml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Linphone/core/notifier/Notifier.cpp b/Linphone/core/notifier/Notifier.cpp index c37586ead..afb573143 100644 --- a/Linphone/core/notifier/Notifier.cpp +++ b/Linphone/core/notifier/Notifier.cpp @@ -361,6 +361,10 @@ void Notifier::notifyReceivedMessages(const std::shared_ptr if (messages.size() == 1) { // Display only sender on mono message. getMessage(message); + if (txt.isEmpty()) { // Do not notify message without content + qDebug() << "empty notif, return"; + return; + } } else { int unreadCount = 0; for (auto &message : messages) { diff --git a/Linphone/view/Page/Form/Chat/SelectedChatView.qml b/Linphone/view/Page/Form/Chat/SelectedChatView.qml index 06e6a31e0..9d445d70d 100644 --- a/Linphone/view/Page/Form/Chat/SelectedChatView.qml +++ b/Linphone/view/Page/Form/Chat/SelectedChatView.qml @@ -245,6 +245,8 @@ FocusScope { anchors.fill: parent orientation: Qt.Vertical handle: Rectangle { + visible: !mainItem.chat?.core.isReadOnly + enabled: visible implicitHeight: Math.round(8 * DefaultStyle.dp) color: Control.SplitHandle.hovered ? DefaultStyle.grey_200 : DefaultStyle.grey_100 }