From 43399a1fbccfc6a54b52003b44fa10c407c45c79 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Thu, 16 Jan 2025 10:48:23 -0500 Subject: [PATCH] Fix PubSub avatar notifications for Monal --- Makefile | 2 +- telegabber.go | 2 +- xmpp/gateway/gateway.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fccaf92..a240b94 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ COMMIT := $(shell git rev-parse --short HEAD) TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551" -VERSION := "v1.9.6" +VERSION := "v1.9.7" MAKEOPTS := "-j4" all: diff --git a/telegabber.go b/telegabber.go index f315de5..5e4793b 100644 --- a/telegabber.go +++ b/telegabber.go @@ -16,7 +16,7 @@ import ( goxmpp "gosrc.io/xmpp" ) -var version string = "1.9.6" +var version string = "1.9.7" var commit string var sm *goxmpp.StreamManager diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go index 685e800..88c9d57 100644 --- a/xmpp/gateway/gateway.go +++ b/xmpp/gateway/gateway.go @@ -475,6 +475,7 @@ func SendPubSubAvatarNotification(component *xmpp.Component, jid string, chatId Attrs: stanza.Attrs{ From: strconv.FormatInt(chatId, 10) + "@" + Jid.Bare(), To: jid, + Type: stanza.MessageTypeHeadline, }, Extensions: []stanza.MsgExtension{event}, }