Update go-whatsapp

This commit is contained in:
Tulir Asokan
2020-05-24 17:47:05 +03:00
parent aa0a4d3eea
commit d625ad0066
3 changed files with 5 additions and 3 deletions

View File

@ -193,9 +193,9 @@ func (puppet *Puppet) handlePresenceEvent(event *event.Event) {
presence := whatsapp.PresenceAvailable
if event.Content.Raw["presence"].(string) != "online" {
presence = whatsapp.PresenceUnavailable
puppet.customUser.log.Infoln("Marking offline")
puppet.customUser.log.Debugln("Marking offline")
} else {
puppet.customUser.log.Infoln("Marking online")
puppet.customUser.log.Debugln("Marking online")
}
_, err := puppet.customUser.Conn.Presence("", presence)
if err != nil {