This commit is contained in:
shoopea 2019-05-03 17:22:57 +08:00
parent 0ba3dac47c
commit 2e9957b2c6

2
td.go
View File

@ -148,7 +148,7 @@ func getHistory(c *tdlib.Client) {
MsgText: msg.Content.(*tdlib.MessageText).Text.Text,
MsgID64: msg.ID,
}
if senderUserID == ownUserID32 {
if msg.SenderUserID == ownUserID32 {
m.Direction = Outgoing
} else {
m.Direction = Incoming