aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-09-29 15:32:48 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-09-29 15:32:48 +0300
commita0803123b2d89c7cd9a61faeb3b2b1bcbd57dbde (patch)
tree8c3bc06d926ccbe7e945da3ff1712beaf3033bc5
parentb70bb53c6d1c06f8c39806b4f71ee4e77c07657c (diff)
Advertise muc#stable_id feature
-rw-r--r--xmpp/handlers.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 3443573..0b3e71f 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -572,6 +572,7 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) {
"muc_unmoderated",
"muc_nonanonymous",
"muc_unsecured",
+ "http://jabber.org/protocol/muc#stable_id",
)
fields := []*stanza.Field{
&stanza.Field{
@@ -594,7 +595,10 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) {
disco.Form = stanza.NewForm(fields, "result")
}
} else {
- disco.AddFeatures(stanza.NSDiscoItems)
+ disco.AddFeatures(
+ stanza.NSDiscoItems,
+ "http://jabber.org/protocol/muc#stable_id",
+ )
disco.AddIdentity("Telegram group chats", "conference", "text")
}
}