fix presence status

This commit is contained in:
Martin/Geno 2019-08-07 00:45:24 +02:00
parent 1c83969d8a
commit b559702f82
No known key found for this signature in database
GPG key ID: 9D7D3C6BFF600C6A

View file

@ -30,11 +30,11 @@ type Schalter struct {
func (s *Schalter) updatePresence(c xmpp.Sender) {
pres := stanza.Presence{
Show: stanza.PresenceShowChat,
Show: stanza.PresenceShowXA,
Status: s.stateString(),
}
if s.state {
pres.Show = stanza.PresenceShowXA
pres.Show = stanza.PresenceShowChat
}
c.Send(pres)
}