2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

version 0.8.19 with fixed stickerpacks and voice messages changelog

This commit is contained in:
John Preston
2015-06-01 23:24:09 +03:00
parent 67e6d12384
commit 635cae4f94
13 changed files with 29 additions and 45 deletions

View File

@@ -1851,8 +1851,6 @@ void HistoryWidget::stickersGot(const MTPmessages_AllStickers &stickers) {
cSetLastStickersUpdate(getms(true));
_stickersUpdateRequest = 0;
LOG(("Stickers: got from server!"));
if (stickers.type() != mtpc_messages_allStickers) return;
const MTPDmessages_allStickers &d(stickers.c_messages_allStickers());
@@ -1861,8 +1859,6 @@ void HistoryWidget::stickersGot(const MTPmessages_AllStickers &stickers) {
const QVector<MTPDocument> &d_docs(d.vdocuments.c_vector().v);
const QVector<MTPStickerSet> &d_sets(d.vsets.c_vector().v);
LOG(("Stickers: clearing everything, got all stickers"));
QByteArray wasHash = cStickersHash();
cSetStickersHash(qba(d.vhash));
@@ -2001,13 +1997,10 @@ void HistoryWidget::stickersGot(const MTPmessages_AllStickers &stickers) {
}
}
}
LOG(("Stickers: now %1 sets, %2 recent").arg(sets.size()).arg(recent.size()));
if (added || removed || cStickersHash() != wasHash) {
LOG(("Stickers: writing stickers from gotAll!"));
Local::writeStickers();
}
if (writeRecent) {
LOG(("Stickers: writing recent stickers from gotAll!"));
Local::writeUserSettings();
}