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

Show all stickers as emoji after default categories.

This commit is contained in:
John Preston
2022-07-08 19:00:30 +04:00
parent 248e0d502c
commit 0ed434cfaf
13 changed files with 469 additions and 57 deletions

View File

@@ -708,7 +708,7 @@ void DocumentData::automaticLoadSettingsChanged() {
return;
}
_loader = nullptr;
_flags &= ~Flag::DownloadCancelled;
resetCancelled();
}
void DocumentData::finishLoad() {
@@ -867,7 +867,7 @@ void DocumentData::save(
cancel();
}
}
_flags &= ~Flag::DownloadCancelled;
resetCancelled();
if (_loader) {
if (fromCloud == LoadFromCloudOrLocal) {
@@ -992,6 +992,10 @@ bool DocumentData::cancelled() const {
return (_flags & Flag::DownloadCancelled);
}
void DocumentData::resetCancelled() {
_flags &= ~Flag::DownloadCancelled;
}
VoiceWaveform documentWaveformDecode(const QByteArray &encoded5bit) {
auto bitsCount = static_cast<int>(encoded5bit.size() * 8);
auto valuesCount = bitsCount / 5;