Always append last message content to notifications (#514)

* always append last message content to notifications

* make "always show notification" configurable

* add unfinished translations

* Fix spacing if no sender is printed
This commit is contained in:
Johannes Bachmann 2023-11-18 23:11:17 +01:00 committed by Nikolay Sinyov
parent 547b6b1e0b
commit 77f03f1f02
4 changed files with 28 additions and 0 deletions

View file

@ -216,6 +216,17 @@ AccordionItem {
}
}
}
TextSwitch {
width: parent.columnWidth
checked: appSettings.notificationAlwaysShowPreview
text: qsTr("Always append message preview to notifications")
description: qsTr("In addition to showing the number of unread messages, the latest message will also be appended to notifications.")
automaticCheck: false
onClicked: {
appSettings.notificationAlwaysShowPreview = !checked
}
}
}
}
}

View file

@ -97,9 +97,12 @@ public:
bool notificationAlwaysShowPreview() const;
void setNotificationAlwaysShowPreview(bool enable);
<<<<<<< HEAD
bool goToQuotedMessage() const;
void setGoToQuotedMessage(bool enable);
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
bool storageOptimizer() const;
void setStorageOptimizer(bool enable);
@ -139,7 +142,10 @@ signals:
void notificationSuppressContentChanged();
void notificationFeedbackChanged();
void notificationAlwaysShowPreviewChanged();
<<<<<<< HEAD
void goToQuotedMessageChanged();
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
void storageOptimizerChanged();
void allowInlineBotLocationAccessChanged();
void remainingInteractionHintsChanged();

View file

@ -1618,6 +1618,14 @@
<source>When tapping a quoted message, open it in chat instead of showing it in an overlay.</source>
<translation>Al Pulsar mensaje citado, abrirá en Charla en lugar de mostrarlo en una superposición.</translation>
</message>
<message>
<source>Always append message preview to notifications</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>In addition to showing the number of unread messages, the latest message will also be appended to notifications.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SettingsPage</name>

View file

@ -1598,6 +1598,7 @@
<source>In addition to showing the number of unread messages, the latest message will also be appended to notifications.</source>
<translation type="unfinished"></translation>
</message>
<<<<<<< HEAD
<message>
<source>Highlight unread messages</source>
<translation type="unfinished"></translation>
@ -1618,6 +1619,8 @@
<source>When tapping a quoted message, open it in chat instead of showing it in an overlay.</source>
<translation type="unfinished"></translation>
</message>
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
</context>
<context>
<name>SettingsPage</name>