diff --git a/README.md b/README.md index 99f29dd..b082a92 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Fernschreiber wouldn't be the same without all the people helping in making it b - Chat list model, TDLib receiver, project dependencies: [Slava Monich](https://github.com/monich) - Location support, app initialization/registration with Telegram, project dependencies: [jgibbon](https://github.com/jgibbon) +### Logo/Icon +- Designed by [Matteo](https://github.com/iamnomeutente) + ### Translations - Chinese: [dashinfantry](https://github.com/dashinfantry) - Finnish: [jorm1s](https://github.com/jorm1s) diff --git a/icons/108x108/harbour-fernschreiber.png b/icons/108x108/harbour-fernschreiber.png index 83e6153..c480933 100644 Binary files a/icons/108x108/harbour-fernschreiber.png and b/icons/108x108/harbour-fernschreiber.png differ diff --git a/icons/128x128/harbour-fernschreiber.png b/icons/128x128/harbour-fernschreiber.png index 5fd6a2e..7bc4571 100644 Binary files a/icons/128x128/harbour-fernschreiber.png and b/icons/128x128/harbour-fernschreiber.png differ diff --git a/icons/172x172/harbour-fernschreiber.png b/icons/172x172/harbour-fernschreiber.png index bd9b9f4..25ca620 100644 Binary files a/icons/172x172/harbour-fernschreiber.png and b/icons/172x172/harbour-fernschreiber.png differ diff --git a/icons/256x256/harbour-fernschreiber.png b/icons/256x256/harbour-fernschreiber.png index 5778a31..3394217 100644 Binary files a/icons/256x256/harbour-fernschreiber.png and b/icons/256x256/harbour-fernschreiber.png differ diff --git a/icons/86x86/harbour-fernschreiber.png b/icons/86x86/harbour-fernschreiber.png index 30ee140..1aac264 100644 Binary files a/icons/86x86/harbour-fernschreiber.png and b/icons/86x86/harbour-fernschreiber.png differ diff --git a/images/background-black-small.png b/images/background-black-small.png index 7b59b4b..5593eed 100644 Binary files a/images/background-black-small.png and b/images/background-black-small.png differ diff --git a/images/background-black.png b/images/background-black.png index f5a008b..e5279a6 100644 Binary files a/images/background-black.png and b/images/background-black.png differ diff --git a/images/background-white-small.png b/images/background-white-small.png index 250afb0..f8fb318 100644 Binary files a/images/background-white-small.png and b/images/background-white-small.png differ diff --git a/images/background-white.png b/images/background-white.png index 427d19e..b44a78e 100644 Binary files a/images/background-white.png and b/images/background-white.png differ diff --git a/images/fernschreiber-notification.png b/images/fernschreiber-notification.png index bc4e29c..b072150 100644 Binary files a/images/fernschreiber-notification.png and b/images/fernschreiber-notification.png differ diff --git a/images/fernschreiber.png b/images/fernschreiber.png index 4870166..62f2c50 100644 Binary files a/images/fernschreiber.png and b/images/fernschreiber.png differ diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index db506d9..fa8d37a 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -98,6 +98,12 @@ Page { isChannel = chatGroupInformation.is_channel; updateGroupStatusText(); } + if (stickerManager.needsReload()) { + console.log("Stickers will be reloaded!"); + tdLibWrapper.getRecentStickers(); + tdLibWrapper.getInstalledStickerSets(); + stickerManager.setNeedsReload(false); + } } function getMessageStatusText(message, listItemIndex, lastReadSentIndex) { diff --git a/rpm/harbour-fernschreiber.spec b/rpm/harbour-fernschreiber.spec index 16386aa..fa78aed 100644 --- a/rpm/harbour-fernschreiber.spec +++ b/rpm/harbour-fernschreiber.spec @@ -12,7 +12,7 @@ Name: harbour-fernschreiber Summary: Fernschreiber is a Telegram client for Sailfish OS Version: 0.3 -Release: 1 +Release: 2 Group: Qt/Qt License: LICENSE URL: http://werkwolf.eu/ diff --git a/rpm/harbour-fernschreiber.yaml b/rpm/harbour-fernschreiber.yaml index b5002d4..0524663 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.3 -Release: 1 +Release: 2 # 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/stickermanager.cpp b/src/stickermanager.cpp index 54f9ff2..b27871f 100644 --- a/src/stickermanager.cpp +++ b/src/stickermanager.cpp @@ -50,6 +50,16 @@ QVariantList StickerManager::getInstalledStickerSets() return this->installedStickerSets; } +bool StickerManager::needsReload() +{ + return this->reloadNeeded; +} + +void StickerManager::setNeedsReload(const bool &reloadNeeded) +{ + this->reloadNeeded = reloadNeeded; +} + void StickerManager::handleRecentStickersUpdated(const QVariantList &stickerIds) { LOG("Receiving recent stickers...." << stickerIds); @@ -115,6 +125,7 @@ void StickerManager::handleStickerSetReceived(const QVariantMap &stickerSet) QVariantMap thumbnailLocalFile = thumbnailFile.value("local").toMap(); if (!thumbnailLocalFile.value("is_downloading_completed").toBool()) { tdLibWrapper->downloadFile(thumbnailFile.value("id").toString()); + this->reloadNeeded = true; } } } diff --git a/src/stickermanager.h b/src/stickermanager.h index 326796d..f4378a3 100644 --- a/src/stickermanager.h +++ b/src/stickermanager.h @@ -35,6 +35,8 @@ public: Q_INVOKABLE QVariantList getRecentStickers(); Q_INVOKABLE QVariantList getInstalledStickerSets(); + Q_INVOKABLE bool needsReload(); + Q_INVOKABLE void setNeedsReload(const bool &reloadNeeded); signals: @@ -57,6 +59,7 @@ private: QVariantMap stickers; QVariantMap stickerSets; QVariantMap stickerSetMap; + bool reloadNeeded; };