Procházet zdrojové kódy

Restore previous behavior for secure mode

tags/0.10
9seconds před 8 roky
rodič
revize
94c2f3c215
1 změnil soubory, kde provedl 0 přidání a 4 odebrání
  1. 0
    4
      wrappers/mtproto_intermediate.go

+ 0
- 4
wrappers/mtproto_intermediate.go Zobrazit soubor

@@ -62,10 +62,6 @@ func (m *MTProtoIntermediate) Read() ([]byte, error) {
62 62
 		return nil, errors.Annotate(err, "Cannot read the message")
63 63
 	}
64 64
 
65
-	if length%4 != 0 {
66
-		length -= length % 4
67
-	}
68
-
69 65
 	return buf.Bytes()[:length], nil
70 66
 }
71 67
 

Načítá se…
Zrušit
Uložit