Fix serializing peers.

This commit is contained in:
John Preston 2021-04-11 12:58:27 +04:00
parent 13d0d15a50
commit 0e1a445614
1 changed files with 2 additions and 1 deletions

View File

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