disable splitview handle if readonly chat

do not create notification if empty
This commit is contained in:
Gaelle Braud 2025-09-11 15:51:46 +02:00
parent 46f20a3dc1
commit 2a57289e18
2 changed files with 6 additions and 0 deletions

View file

@ -361,6 +361,10 @@ void Notifier::notifyReceivedMessages(const std::shared_ptr<linphone::ChatRoom>
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) {

View file

@ -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
}