context: use Chat recipient first, then Sender one

pull/425/head
Demian 3 years ago
parent daebf9f55d
commit f624062eec

@ -211,11 +211,11 @@ func (c *nativeContext) Chat() *Chat {
}
func (c *nativeContext) Recipient() Recipient {
sender := c.Sender()
if sender != nil {
return sender
chat := c.Chat()
if chat != nil {
return chat
}
return c.Chat()
return c.Sender()
}
func (c *nativeContext) Text() string {

Loading…
Cancel
Save