This commit is contained in:
shoopea 2019-05-04 18:04:27 +08:00
parent 1d114e6992
commit 05ef0ceccb

6
td.go
View File

@ -111,10 +111,12 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
Text: msg.Content.(*tdlib.MessageText).Text.Text, Text: msg.Content.(*tdlib.MessageText).Text.Text,
} }
} else { } else {
m = nil m = ChatWarsMessage{
ID64: 0,
}
} }
if m != nil { if m.ID64 != 0 {
MQCWMsgQueue <- m MQCWMsgQueue <- m
if m.ID64 < lastMsgID64 { if m.ID64 < lastMsgID64 {