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) {