From 1d3dfa5b93000bc4109ba49ea018e72fbf4f5753 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Jul 2023 14:06:36 +0200 Subject: Further reduce complexity of streamFeatures struct --- xmpp/streams.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xmpp/streams.go b/xmpp/streams.go index b55b6f0..b7cde3e 100644 --- a/xmpp/streams.go +++ b/xmpp/streams.go @@ -65,9 +65,7 @@ func iqHandler(s *session, e []xml.Token) { } type streamFeatures struct { - Mechanisms []struct { - Type string `xml:",chardata"` - } `xml:"mechanisms>mechanism"` + SaslMechanisms []string `xml:"mechanisms>mechanism"` } func streamFeaturesHandler(s *xml.StartElement, d *xml.Decoder, c chan<- any) { -- cgit v1.2.3-70-g09d2