From 2a8fcacfb7d7762750a6113071ac2b3b4a6ee823 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 29 Apr 2019 13:52:22 +0800 Subject: [PATCH] typo --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 438a231..a165578 100644 --- a/main.go +++ b/main.go @@ -134,7 +134,7 @@ func ListenCW(c *tdlib.Client) { mType := updateMsg.Message.Content.GetMessageContentEnum() if mType == "messageText" { user, err := c.GetUser(senderUserID) - if err != nil { + if err != nil { fmt.Println("ListenCW:", err.Error()) continue } @@ -146,7 +146,7 @@ func ListenCW(c *tdlib.Client) { } if senderUserID == ownUserID64 { m.Direction = Outgoing - } else + } else { m.Direction = Incoming }