From daa2d5b9015bea6107578cb750cae8d883c390c5 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Fri, 13 Jul 2018 08:04:04 +0300 Subject: [PATCH] Small fix --- wrappers/mtproto_intermediate.go | 2 +- wrappers/mtproto_intermediate_secure.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/mtproto_intermediate.go b/wrappers/mtproto_intermediate.go index 13e2d42..5b88d74 100644 --- a/wrappers/mtproto_intermediate.go +++ b/wrappers/mtproto_intermediate.go @@ -76,7 +76,7 @@ func (m *MTProtoIntermediate) Write(p []byte) (int, error) { "counter", m.writeCounter, ) - if m.opts.ReadHacks.SimpleAck { + if m.opts.WriteHacks.SimpleAck { return m.conn.Write(p) } diff --git a/wrappers/mtproto_intermediate_secure.go b/wrappers/mtproto_intermediate_secure.go index ccffc90..b5aa362 100644 --- a/wrappers/mtproto_intermediate_secure.go +++ b/wrappers/mtproto_intermediate_secure.go @@ -36,7 +36,7 @@ func (m *MTProtoIntermediateSecure) Write(p []byte) (int, error) { "counter", m.writeCounter, ) - if m.opts.ReadHacks.SimpleAck { + if m.opts.WriteHacks.SimpleAck { return m.conn.Write(p) }