aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
Diffstat (limited to 'telegram')
-rw-r--r--telegram/client.go7
-rw-r--r--telegram/utils.go2
2 files changed, 1 insertions, 8 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,
diff --git a/telegram/utils.go b/telegram/utils.go
index 1248a54..61fefa7 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -225,7 +225,7 @@ func (c *Client) ProcessStatusUpdate(chatID int64, status string, show string, o
gateway.SPShow(show),
gateway.SPStatus(status),
gateway.SPPhoto(photo),
- gateway.SPResource(c.resource),
+ gateway.SPResource(gateway.Jid.Resource),
gateway.SPImmed(gateway.SPImmed.Get(oldArgs)),
}
if presenceType != "" {