From 57688555281a7042b9fa100731137e6794003dc6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 31 Jul 2019 15:32:49 +0800 Subject: [PATCH] fix client revamping --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 3e4a70c..30f6b02 100644 --- a/td.go +++ b/td.go @@ -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 }