aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-05-26 14:14:38 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-05-26 14:14:38 +0300
commit70841a2bea61728c75f6675bcd3355e8dfdcd087 (patch)
tree2405e12fb7f306a0f64725a5631bfb5d7f509e43 /telegram/client.go
parentae16fd2a0b48c3659a012accd0269323935dfd14 (diff)
Always send XMPP messages with a resource
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/telegram/client.go b/telegram/client.go
index 7c3d904..49816db 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -48,7 +48,6 @@ type Client struct {
options []client.Option
me *client.User
- resource string
xmpp *xmpp.Component
jid string
Session *persistence.Session
@@ -116,14 +115,8 @@ func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component
IgnoreFileNames: false,
}
- resource := conf.Tdlib.Client.DeviceModel
- if resource == "" {
- resource = "telegabber"
- }
-
return &Client{
parameters: &parameters,
- resource: resource,
xmpp: component,
jid: jid,
Session: session,