From 20e6d2558e868d61d7168ffe5ca4f3bff0a240c7 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 29 Jan 2024 05:00:42 -0500 Subject: Version 1.9.0 --- telegram/connect.go | 2 +- telegram/utils.go | 2 +- telegram/utils_test.go | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'telegram') 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", -- cgit v1.2.3