diff options
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/connect.go | 2 | ||||
-rw-r--r-- | telegram/utils.go | 2 | ||||
-rw-r--r-- | telegram/utils_test.go | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/telegram/connect.go b/telegram/connect.go index afa2d1f..f344759 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -158,7 +158,7 @@ func (c *Client) Connect(resource string) error { } gateway.SubscribeToTransport(c.xmpp, c.jid) - c.sendPresence(gateway.SPStatus("Logged in as: "+c.Session.Login)) + c.sendPresence(gateway.SPStatus("Logged in as: " + c.Session.Login)) }() return nil diff --git a/telegram/utils.go b/telegram/utils.go index 2082645..7ab5765 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -1298,7 +1298,7 @@ func (c *Client) roster(resource string) { c.ProcessStatusUpdate(chat, "", "") } - c.sendPresence(gateway.SPStatus("Logged in as: "+c.Session.Login)) + c.sendPresence(gateway.SPStatus("Logged in as: " + c.Session.Login)) c.addResource(resource) } diff --git a/telegram/utils_test.go b/telegram/utils_test.go index 534596f..fa9c107 100644 --- a/telegram/utils_test.go +++ b/telegram/utils_test.go @@ -519,9 +519,11 @@ func TestMessageToPrefix6(t *testing.T) { ChatId: 25, IsOutgoing: true, ReplyTo: &client.MessageReplyToMessage{ - ChatId: 41, - Quote: &client.FormattedText{ - Text: "tist\nuz\niz", + ChatId: 41, + Quote: &client.TextQuote{ + Text: &client.FormattedText{ + Text: "tist\nuz\niz", + }, }, Origin: &client.MessageOriginHiddenUser{ SenderName: "ziz", |