fix client revamping
This commit is contained in:
parent
27b934dadc
commit
5768855528
4
td.go
4
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user