2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use 1.7x instead of 2x in voice messages.

This commit is contained in:
John Preston
2018-11-30 18:33:12 +04:00
parent 679330c1c0
commit 3bd0efa91e
7 changed files with 28 additions and 24 deletions

View File

@@ -1766,7 +1766,7 @@ bool _readSetting(quint32 blockId, QDataStream &stream, int version, ReadSetting
stream >> v;
if (!_checkStreamStatus(stream)) return false;
Global::SetVoiceMsgPlaybackSpeed((v == 2) ? 2. : 1.);
Global::SetVoiceMsgPlaybackDoubled(v == 2);
} break;
default:
@@ -2039,7 +2039,7 @@ void _writeUserSettings() {
if (!userData.isEmpty()) {
data.stream << quint32(dbiAuthSessionSettings) << userData;
}
data.stream << quint32(dbiPlaybackSpeed) << qint32(std::round(Global::VoiceMsgPlaybackSpeed()));
data.stream << quint32(dbiPlaybackSpeed) << qint32(Global::VoiceMsgPlaybackDoubled() ? 2 : 1);
{
data.stream << quint32(dbiRecentEmoji) << recentEmojiPreloadData;