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 { func (c *nativeContext) Recipient() Recipient {
sender := c.Sender() chat := c.Chat()
if sender != nil { if chat != nil {
return sender return chat
} }
return c.Chat() return c.Sender()
} }
func (c *nativeContext) Text() string { func (c *nativeContext) Text() string {

Loading…
Cancel
Save