From 0e1a4456143f5f4fd474f9e516b4bca37b9347f1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 11 Apr 2021 12:58:27 +0400 Subject: [PATCH] Fix serializing peers. --- Telegram/SourceFiles/ui/image/image_location.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/image/image_location.cpp b/Telegram/SourceFiles/ui/image/image_location.cpp index 9161ab01c8..8be9a22b59 100644 --- a/Telegram/SourceFiles/ui/image/image_location.cpp +++ b/Telegram/SourceFiles/ui/image/image_location.cpp @@ -277,7 +277,8 @@ QByteArray StorageFileLocation::serialize() const { Assert(!(quint8(_type) & kModernLocationFlag) && !(quint8(_type) & kInMessageFieldsFlag)); - auto typeWithFlags = quint8(_type) | kModernLocationFlag; + auto typeWithFlags = quint8(_type); + typeWithFlags |= kModernLocationFlag; auto field1 = qint32(_localId); auto field2 = qint32(0); if (_inMessagePeerId != 0) {