fix presence status
This commit is contained in:
parent
1c83969d8a
commit
b559702f82
1 changed files with 2 additions and 2 deletions
|
@ -30,11 +30,11 @@ type Schalter struct {
|
||||||
|
|
||||||
func (s *Schalter) updatePresence(c xmpp.Sender) {
|
func (s *Schalter) updatePresence(c xmpp.Sender) {
|
||||||
pres := stanza.Presence{
|
pres := stanza.Presence{
|
||||||
Show: stanza.PresenceShowChat,
|
Show: stanza.PresenceShowXA,
|
||||||
Status: s.stateString(),
|
Status: s.stateString(),
|
||||||
}
|
}
|
||||||
if s.state {
|
if s.state {
|
||||||
pres.Show = stanza.PresenceShowXA
|
pres.Show = stanza.PresenceShowChat
|
||||||
}
|
}
|
||||||
c.Send(pres)
|
c.Send(pres)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue