From 05ef0ceccb149139f9cb3c1c50c389c6a8b27def Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 18:04:27 +0800 Subject: [PATCH] fix --- td.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 22afc17..d44143f 100644 --- a/td.go +++ b/td.go @@ -111,10 +111,12 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { Text: msg.Content.(*tdlib.MessageText).Text.Text, } } else { - m = nil + m = ChatWarsMessage{ + ID64: 0, + } } - if m != nil { + if m.ID64 != 0 { MQCWMsgQueue <- m if m.ID64 < lastMsgID64 {