mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Restore previous behavior for secure mode
This commit is contained in:
@@ -62,10 +62,6 @@ func (m *MTProtoIntermediate) Read() ([]byte, error) {
|
|||||||
return nil, errors.Annotate(err, "Cannot read the message")
|
return nil, errors.Annotate(err, "Cannot read the message")
|
||||||
}
|
}
|
||||||
|
|
||||||
if length%4 != 0 {
|
|
||||||
length -= length % 4
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf.Bytes()[:length], nil
|
return buf.Bytes()[:length], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user