mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
disable splitview handle if readonly chat
do not create notification if empty
This commit is contained in:
parent
46f20a3dc1
commit
2a57289e18
2 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue