mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix PubSub avatar notifications for Monal
This commit is contained in:
parent
421477ad8c
commit
43399a1fbc
3 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
COMMIT := $(shell git rev-parse --short HEAD)
|
COMMIT := $(shell git rev-parse --short HEAD)
|
||||||
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
|
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
|
||||||
VERSION := "v1.9.6"
|
VERSION := "v1.9.7"
|
||||||
MAKEOPTS := "-j4"
|
MAKEOPTS := "-j4"
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import (
|
||||||
goxmpp "gosrc.io/xmpp"
|
goxmpp "gosrc.io/xmpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string = "1.9.6"
|
var version string = "1.9.7"
|
||||||
var commit string
|
var commit string
|
||||||
|
|
||||||
var sm *goxmpp.StreamManager
|
var sm *goxmpp.StreamManager
|
||||||
|
|
|
||||||
|
|
@ -475,6 +475,7 @@ func SendPubSubAvatarNotification(component *xmpp.Component, jid string, chatId
|
||||||
Attrs: stanza.Attrs{
|
Attrs: stanza.Attrs{
|
||||||
From: strconv.FormatInt(chatId, 10) + "@" + Jid.Bare(),
|
From: strconv.FormatInt(chatId, 10) + "@" + Jid.Bare(),
|
||||||
To: jid,
|
To: jid,
|
||||||
|
Type: stanza.MessageTypeHeadline,
|
||||||
},
|
},
|
||||||
Extensions: []stanza.MsgExtension{event},
|
Extensions: []stanza.MsgExtension{event},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue