2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Hide mark as read button in notifications when app is pass-code locked

This commit is contained in:
Ilya Fedin
2020-10-12 12:05:43 +04:00
committed by John Preston
parent 0179a2ca10
commit 4033a091b5

View File

@@ -307,8 +307,10 @@ NotificationData::NotificationData(
_actions.push_back(qsl("default"));
_actions.push_back(QString());
_actions.push_back(qsl("mail-mark-read"));
_actions.push_back(tr::lng_context_mark_read(tr::now));
if (!hideReplyButton) {
_actions.push_back(qsl("mail-mark-read"));
_actions.push_back(tr::lng_context_mark_read(tr::now));
}
if (capabilities.contains(qsl("inline-reply")) && !hideReplyButton) {
_actions.push_back(qsl("inline-reply"));