From b012847017b0943bb1604ae77c99d6487bf334c0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 30 May 2019 18:04:18 +0300 Subject: [PATCH] Fix storage location serialization. --- Telegram/SourceFiles/ui/image/image_location.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/image/image_location.cpp b/Telegram/SourceFiles/ui/image/image_location.cpp index 335f64740..1e36c140d 100644 --- a/Telegram/SourceFiles/ui/image/image_location.cpp +++ b/Telegram/SourceFiles/ui/image/image_location.cpp @@ -258,7 +258,7 @@ QByteArray StorageFileLocation::serialize() const { stream.setVersion(QDataStream::Qt_5_1); stream << quint16(_dcId) - << (kSerializeTypeShift | quint8(_type)) + << quint8(kSerializeTypeShift | quint8(_type)) << quint8(_sizeLetter) << qint32(_localId) << quint64(_id)