fix client revamping

This commit is contained in:
shoopea 2019-07-31 15:32:49 +08:00
parent 27b934dadc
commit 5768855528

4
td.go
View File

@ -94,7 +94,7 @@ func ListenCW(c *tdlib.Client) {
m := ChatWarsMessage{
TGUserID64: ownUserID64,
TgSenderUserID64: int64(updateMsg.Message.SenderUserID),
TGSenderUserID64: int64(updateMsg.Message.SenderUserID),
ID64: updateMsg.Message.ID,
ChatID64: updateMsg.Message.ChatID,
Text: txt,
@ -191,7 +191,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
}
}
if m.ID64 != 0 && (*senderUserID64 == 0 || m.SenderUserID64 == *senderUserID64) {
if m.ID64 != 0 && (*senderUserID64 == 0 || m.TGSenderUserID64 == *senderUserID64) {
MQCWMsgQueue <- m
msgCount = msgCount + 1
}