use lib muc history setting

This commit is contained in:
Martin/Geno 2019-06-27 14:31:50 +02:00
parent 60960a687b
commit dbd8488539
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 2 deletions

View File

@ -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 {