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{
|
m := ChatWarsMessage{
|
||||||
TGUserID64: ownUserID64,
|
TGUserID64: ownUserID64,
|
||||||
TgSenderUserID64: int64(updateMsg.Message.SenderUserID),
|
TGSenderUserID64: int64(updateMsg.Message.SenderUserID),
|
||||||
ID64: updateMsg.Message.ID,
|
ID64: updateMsg.Message.ID,
|
||||||
ChatID64: updateMsg.Message.ChatID,
|
ChatID64: updateMsg.Message.ChatID,
|
||||||
Text: txt,
|
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
|
MQCWMsgQueue <- m
|
||||||
msgCount = msgCount + 1
|
msgCount = msgCount + 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user