From dbd8488539b9e8b61791c287cb1c56e2ee8b59bc Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 27 Jun 2019 14:31:50 +0200 Subject: [PATCH] use lib muc history setting --- output/xmpp/send.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/output/xmpp/send.go b/output/xmpp/send.go index 47cd144..53ecb2d 100644 --- a/output/xmpp/send.go +++ b/output/xmpp/send.go @@ -15,13 +15,12 @@ func (out *Output) Join(to string) { logger.Error("xmpp could not generate jid to join ", to, " error:", err) return } - maxstanzas := 0 toJID.Resource = nickname err = out.client.Send(xmpp.Presence{Attrs: xmpp.Attrs{To: toJID.Full()}, Extensions: []xmpp.PresExtension{ xmpp.MucPresence{ - History: xmpp.History{MaxStanzas: &maxstanzas}, + History: xmpp.History{MaxStanzas: xmpp.NewNullableInt(0)}, }}, }) if err != nil {