Change logo/icon - thanks to @iamnomeutente
|
@ -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)
|
- 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)
|
- Location support, app initialization/registration with Telegram, project dependencies: [jgibbon](https://github.com/jgibbon)
|
||||||
|
|
||||||
|
### Logo/Icon
|
||||||
|
- Designed by [Matteo](https://github.com/iamnomeutente)
|
||||||
|
|
||||||
### Translations
|
### Translations
|
||||||
- Chinese: [dashinfantry](https://github.com/dashinfantry)
|
- Chinese: [dashinfantry](https://github.com/dashinfantry)
|
||||||
- Finnish: [jorm1s](https://github.com/jorm1s)
|
- Finnish: [jorm1s](https://github.com/jorm1s)
|
||||||
|
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 74 KiB |
|
@ -98,6 +98,12 @@ Page {
|
||||||
isChannel = chatGroupInformation.is_channel;
|
isChannel = chatGroupInformation.is_channel;
|
||||||
updateGroupStatusText();
|
updateGroupStatusText();
|
||||||
}
|
}
|
||||||
|
if (stickerManager.needsReload()) {
|
||||||
|
console.log("Stickers will be reloaded!");
|
||||||
|
tdLibWrapper.getRecentStickers();
|
||||||
|
tdLibWrapper.getInstalledStickerSets();
|
||||||
|
stickerManager.setNeedsReload(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMessageStatusText(message, listItemIndex, lastReadSentIndex) {
|
function getMessageStatusText(message, listItemIndex, lastReadSentIndex) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ Name: harbour-fernschreiber
|
||||||
|
|
||||||
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
||||||
Version: 0.3
|
Version: 0.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
License: LICENSE
|
License: LICENSE
|
||||||
URL: http://werkwolf.eu/
|
URL: http://werkwolf.eu/
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Name: harbour-fernschreiber
|
Name: harbour-fernschreiber
|
||||||
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
||||||
Version: 0.3
|
Version: 0.3
|
||||||
Release: 1
|
Release: 2
|
||||||
# The contents of the Group field should be one of the groups listed here:
|
# The contents of the Group field should be one of the groups listed here:
|
||||||
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
|
|
|
@ -50,6 +50,16 @@ QVariantList StickerManager::getInstalledStickerSets()
|
||||||
return this->installedStickerSets;
|
return this->installedStickerSets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool StickerManager::needsReload()
|
||||||
|
{
|
||||||
|
return this->reloadNeeded;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StickerManager::setNeedsReload(const bool &reloadNeeded)
|
||||||
|
{
|
||||||
|
this->reloadNeeded = reloadNeeded;
|
||||||
|
}
|
||||||
|
|
||||||
void StickerManager::handleRecentStickersUpdated(const QVariantList &stickerIds)
|
void StickerManager::handleRecentStickersUpdated(const QVariantList &stickerIds)
|
||||||
{
|
{
|
||||||
LOG("Receiving recent stickers...." << stickerIds);
|
LOG("Receiving recent stickers...." << stickerIds);
|
||||||
|
@ -115,6 +125,7 @@ void StickerManager::handleStickerSetReceived(const QVariantMap &stickerSet)
|
||||||
QVariantMap thumbnailLocalFile = thumbnailFile.value("local").toMap();
|
QVariantMap thumbnailLocalFile = thumbnailFile.value("local").toMap();
|
||||||
if (!thumbnailLocalFile.value("is_downloading_completed").toBool()) {
|
if (!thumbnailLocalFile.value("is_downloading_completed").toBool()) {
|
||||||
tdLibWrapper->downloadFile(thumbnailFile.value("id").toString());
|
tdLibWrapper->downloadFile(thumbnailFile.value("id").toString());
|
||||||
|
this->reloadNeeded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,8 @@ public:
|
||||||
|
|
||||||
Q_INVOKABLE QVariantList getRecentStickers();
|
Q_INVOKABLE QVariantList getRecentStickers();
|
||||||
Q_INVOKABLE QVariantList getInstalledStickerSets();
|
Q_INVOKABLE QVariantList getInstalledStickerSets();
|
||||||
|
Q_INVOKABLE bool needsReload();
|
||||||
|
Q_INVOKABLE void setNeedsReload(const bool &reloadNeeded);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
@ -57,6 +59,7 @@ private:
|
||||||
QVariantMap stickers;
|
QVariantMap stickers;
|
||||||
QVariantMap stickerSets;
|
QVariantMap stickerSets;
|
||||||
QVariantMap stickerSetMap;
|
QVariantMap stickerSetMap;
|
||||||
|
bool reloadNeeded;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|