aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qml/ChatPage.qml2
-rw-r--r--qml/Message.qml1
2 files changed, 2 insertions, 1 deletions
diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml
index a82e0f6..87979ca 100644
--- a/qml/ChatPage.qml
+++ b/qml/ChatPage.qml
@@ -56,7 +56,7 @@ Kirigami.ScrollablePage {
function onIncomingMessage(accountId, chatId, msgId) {
updateMessagelist();
console.log("Incoming message for chat " + chatId);
- if(!chat.muted || chatId != 0 || chatId != root.chatId)
+ if(!chat.muted && chatId != 0 && chatId != root.chatId)
KNotif.send("onIncomingMessage",chat.getProfileImage() ,chat.name ,"has sent you a message.")
}
diff --git a/qml/Message.qml b/qml/Message.qml
index d255430..e965aad 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -86,6 +86,7 @@ RowLayout {
Rectangle {
id: msgRect
Layout.leftMargin: Kirigami.Units.largeSpacing
+ Layout.rightMargin: 2*Kirigami.Units.largeSpacing
Layout.preferredWidth: messageContents.width
Layout.preferredHeight: messageContents.height
color: Kirigami.Theme.backgroundColor