Restore previous behavior for secure mode

This commit is contained in:
9seconds
2018-07-12 18:13:39 +03:00
parent 1f74aabbe4
commit 94c2f3c215
-4
View File
@@ -62,10 +62,6 @@ func (m *MTProtoIntermediate) Read() ([]byte, error) {
return nil, errors.Annotate(err, "Cannot read the message")
}
if length%4 != 0 {
length -= length % 4
}
return buf.Bytes()[:length], nil
}