From 2e9957b2c6972adeff6d7c7fce3a1e5c77a55fb1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 17:22:57 +0800 Subject: [PATCH] upd --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 08dad97..17e4f04 100644 --- a/td.go +++ b/td.go @@ -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