Advertise muc#stable_id feature

This commit is contained in:
Bohdan Horbeshko 2023-09-29 08:32:48 -04:00
parent b70bb53c6d
commit a0803123b2

View file

@ -572,6 +572,7 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) {
"muc_unmoderated", "muc_unmoderated",
"muc_nonanonymous", "muc_nonanonymous",
"muc_unsecured", "muc_unsecured",
"http://jabber.org/protocol/muc#stable_id",
) )
fields := []*stanza.Field{ fields := []*stanza.Field{
&stanza.Field{ &stanza.Field{
@ -594,7 +595,10 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) {
disco.Form = stanza.NewForm(fields, "result") disco.Form = stanza.NewForm(fields, "result")
} }
} else { } else {
disco.AddFeatures(stanza.NSDiscoItems) disco.AddFeatures(
stanza.NSDiscoItems,
"http://jabber.org/protocol/muc#stable_id",
)
disco.AddIdentity("Telegram group chats", "conference", "text") disco.AddIdentity("Telegram group chats", "conference", "text")
} }
} }