This commit is contained in:
shoopea 2019-04-29 13:52:22 +08:00
parent 23d3acbb37
commit 2a8fcacfb7

View File

@ -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
}