diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 5868606..1991d78 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -908,6 +908,20 @@ func handleGetDiscoInfo(s xmpp.Sender, iq *stanza.IQ, di *stanza.DiscoInfo) { disco.AddFeatures("jabber:iq:register") } disco.AddFeatures(gateway.NSCommand) + } else if di.Node == "x-roomuser-item" { + bare, _, fromOk := gateway.SplitJID(iq.From) + if fromOk { + session, sessionOk := sessions[bare] + if sessionOk && session.Session.MUC { + if toOk && toIsGroup { + chat, _, err := session.GetContactByID(toID, nil) + if err == nil && session.IsGroup(chat) { + disco.SetNode(di.Node) + disco.AddIdentity(session.GetMUCNickname(0), "conference", "text") + } + } + } + } } else { chatType, chatTypeErr := getTelegramChatType(iq.From, iq.To)