aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2024-01-29 13:00:42 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2024-01-29 13:00:42 +0300
commit20e6d2558e868d61d7168ffe5ca4f3bff0a240c7 (patch)
tree4be00780eb2fe931f824dc83ef018f1df320d343 /telegram
parent3a60a1cfaa9329e4c89b8c160892dda75de6c560 (diff)
Version 1.9.0v1.9.0
Diffstat (limited to 'telegram')
-rw-r--r--telegram/connect.go2
-rw-r--r--telegram/utils.go2
-rw-r--r--telegram/utils_test.go8
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",