From 32a55c48be9eef64a66eb183fa3293b5ef453d7b Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Wed, 27 Apr 2022 22:06:57 +0200 Subject: [PATCH] Bring notifications back to lock screen, changelog for 0.15 --- qml/pages/AboutPage.qml | 2 +- rpm/harbour-fernschreiber.changes | 6 ++++++ rpm/harbour-fernschreiber.spec | 4 ++-- rpm/harbour-fernschreiber.yaml | 4 ++-- src/notificationmanager.cpp | 2 ++ src/tdlibwrapper.cpp | 2 +- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index 4711ff1..7df0753 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -57,7 +57,7 @@ Page { } Label { - text: "Fernschreiber 0.14" + text: "Fernschreiber 0.15" horizontalAlignment: Text.AlignHCenter font.pixelSize: Theme.fontSizeExtraLarge anchors { diff --git a/rpm/harbour-fernschreiber.changes b/rpm/harbour-fernschreiber.changes index 7e8096b..f5f77e3 100644 --- a/rpm/harbour-fernschreiber.changes +++ b/rpm/harbour-fernschreiber.changes @@ -12,6 +12,12 @@ # * date Author's Name version-release # - Summary of changes +* Wed Apr 27 2022 Sebastian J. Wolf 0.15 +- Use geo: URL handler to open locations (direct call to Pure Maps is no longer working on SFOS 4.4) +- Use generic file handler to open downloaded files (cdg-open is no longer working on SFOS 4.4) +- Fix: Race condition on initial login caused malfunction of chats and settings page +- Fix: Bring notifications back to lock screen of SFOS 4.4 + * Sun Apr 24 2022 Sebastian J. Wolf 0.14 - Adjustments to SFOS 4.4: Setup application profile, migrate configuration, fix notification sound (bug #486) - Support for Emoji 14.0 diff --git a/rpm/harbour-fernschreiber.spec b/rpm/harbour-fernschreiber.spec index caf6597..4bd4a03 100644 --- a/rpm/harbour-fernschreiber.spec +++ b/rpm/harbour-fernschreiber.spec @@ -11,8 +11,8 @@ Name: harbour-fernschreiber # << macros Summary: Fernschreiber is a Telegram client for Sailfish OS -Version: 0.14 -Release: 2 +Version: 0.15 +Release: 1 Group: Qt/Qt License: LICENSE URL: http://werkwolf.eu/ diff --git a/rpm/harbour-fernschreiber.yaml b/rpm/harbour-fernschreiber.yaml index b5168b1..c6a5178 100644 --- a/rpm/harbour-fernschreiber.yaml +++ b/rpm/harbour-fernschreiber.yaml @@ -1,7 +1,7 @@ Name: harbour-fernschreiber Summary: Fernschreiber is a Telegram client for Sailfish OS -Version: 0.14 -Release: 2 +Version: 0.15 +Release: 1 # The contents of the Group field should be one of the groups listed here: # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS Group: Qt/Qt diff --git a/src/notificationmanager.cpp b/src/notificationmanager.cpp index cec0cc0..f45f743 100644 --- a/src/notificationmanager.cpp +++ b/src/notificationmanager.cpp @@ -66,6 +66,7 @@ namespace { const QString HINT_DISPLAY_ON("x-nemo-display-on"); // bool const QString HINT_VISIBILITY("x-nemo-visibility"); // QString const QString HINT_FEEDBACK("x-nemo-feedback"); // QString + const QString HINT_PRIORITY("x-nemo-priority"); // int const QString VISIBILITY_PUBLIC("public"); } @@ -218,6 +219,7 @@ void NotificationManager::updateNotificationGroup(int groupId, qlonglong chatId, notification->setHintValue(HINT_CHAT_ID, chatId); notification->setHintValue(HINT_TOTAL_COUNT, totalCount); notification->setHintValue(HINT_FEEDBACK, "chat_exists"); + notification->setHintValue(HINT_PRIORITY, 120); notificationGroups.insert(groupId, notificationGroup = new NotificationGroup(groupId, chatId, totalCount, notification)); } diff --git a/src/tdlibwrapper.cpp b/src/tdlibwrapper.cpp index e540261..edfbc4d 100644 --- a/src/tdlibwrapper.cpp +++ b/src/tdlibwrapper.cpp @@ -1901,7 +1901,7 @@ void TDLibWrapper::setInitialParameters() QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat); initialParameters.insert("device_model", hardwareSettings.value("NAME", "Unknown Mobile Device").toString()); initialParameters.insert("system_version", QSysInfo::prettyProductName()); - initialParameters.insert("application_version", "0.14"); + initialParameters.insert("application_version", "0.15"); initialParameters.insert("enable_storage_optimizer", appSettings->storageOptimizer()); // initialParameters.insert("use_test_dc", true); requestObject.insert("parameters", initialParameters);