Update dependencies and remove old matterclient lib (#2067)
This commit is contained in:
7
vendor/go.mau.fi/whatsmeow/notification.go
vendored
7
vendor/go.mau.fi/whatsmeow/notification.go
vendored
@@ -173,6 +173,11 @@ func (cli *Client) handleAccountSyncNotification(node *waBinary.Node) {
|
||||
cli.handlePrivacySettingsNotification(&child)
|
||||
case "devices":
|
||||
cli.handleOwnDevicesNotification(&child)
|
||||
case "picture":
|
||||
cli.dispatchEvent(&events.Picture{
|
||||
Timestamp: node.AttrGetter().UnixTime("t"),
|
||||
JID: cli.getOwnID().ToNonAD(),
|
||||
})
|
||||
default:
|
||||
cli.Log.Debugf("Unhandled account sync item %s", child.Tag)
|
||||
}
|
||||
@@ -254,6 +259,8 @@ func (cli *Client) handleNotification(node *waBinary.Node) {
|
||||
go cli.handleMediaRetryNotification(node)
|
||||
case "privacy_token":
|
||||
go cli.handlePrivacyTokenNotification(node)
|
||||
case "link_code_companion_reg":
|
||||
go cli.tryHandleCodePairNotification(node)
|
||||
// Other types: business, disappearing_mode, server, status, pay, psa
|
||||
default:
|
||||
cli.Log.Debugf("Unhandled notification with type %s", notifType)
|
||||
|
||||
Reference in New Issue
Block a user