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; bool notificationAlwaysShowPreview() const;
void setNotificationAlwaysShowPreview(bool enable); void setNotificationAlwaysShowPreview(bool enable);
<<<<<<< HEAD
bool goToQuotedMessage() const; bool goToQuotedMessage() const;
void setGoToQuotedMessage(bool enable); void setGoToQuotedMessage(bool enable);
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
bool storageOptimizer() const; bool storageOptimizer() const;
void setStorageOptimizer(bool enable); void setStorageOptimizer(bool enable);
@ -139,7 +142,10 @@ signals:
void notificationSuppressContentChanged(); void notificationSuppressContentChanged();
void notificationFeedbackChanged(); void notificationFeedbackChanged();
void notificationAlwaysShowPreviewChanged(); void notificationAlwaysShowPreviewChanged();
<<<<<<< HEAD
void goToQuotedMessageChanged(); void goToQuotedMessageChanged();
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
void storageOptimizerChanged(); void storageOptimizerChanged();
void allowInlineBotLocationAccessChanged(); void allowInlineBotLocationAccessChanged();
void remainingInteractionHintsChanged(); 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> <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> <translation>Al Pulsar mensaje citado, abrirá en Charla en lugar de mostrarlo en una superposición.</translation>
</message> </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>
<context> <context>
<name>SettingsPage</name> <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> <source>In addition to showing the number of unread messages, the latest message will also be appended to notifications.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<<<<<<< HEAD
<message> <message>
<source>Highlight unread messages</source> <source>Highlight unread messages</source>
<translation type="unfinished"></translation> <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> <source>When tapping a quoted message, open it in chat instead of showing it in an overlay.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
=======
>>>>>>> b11f7dd (Always append last message content to notifications (#514))
</context> </context>
<context> <context>
<name>SettingsPage</name> <name>SettingsPage</name>