Update dependencies and build to go1.22 (#2113)
* Update dependencies and build to go1.22 * Fix api changes wrt to dependencies * Update golangci config
This commit is contained in:
35
vendor/go.mau.fi/whatsmeow/appstate.go
vendored
35
vendor/go.mau.fi/whatsmeow/appstate.go
vendored
@@ -223,6 +223,41 @@ func (cli *Client) dispatchAppState(mutation appstate.Mutation, fullSync bool, e
|
||||
Action: mutation.Action.GetUserStatusMuteAction(),
|
||||
FromFullSync: fullSync,
|
||||
}
|
||||
case appstate.IndexLabelEdit:
|
||||
act := mutation.Action.GetLabelEditAction()
|
||||
eventToDispatch = &events.LabelEdit{
|
||||
Timestamp: ts,
|
||||
LabelID: mutation.Index[1],
|
||||
Action: act,
|
||||
FromFullSync: fullSync,
|
||||
}
|
||||
case appstate.IndexLabelAssociationChat:
|
||||
if len(mutation.Index) < 3 {
|
||||
return
|
||||
}
|
||||
jid, _ = types.ParseJID(mutation.Index[2])
|
||||
act := mutation.Action.GetLabelAssociationAction()
|
||||
eventToDispatch = &events.LabelAssociationChat{
|
||||
JID: jid,
|
||||
Timestamp: ts,
|
||||
LabelID: mutation.Index[1],
|
||||
Action: act,
|
||||
FromFullSync: fullSync,
|
||||
}
|
||||
case appstate.IndexLabelAssociationMessage:
|
||||
if len(mutation.Index) < 6 {
|
||||
return
|
||||
}
|
||||
jid, _ = types.ParseJID(mutation.Index[2])
|
||||
act := mutation.Action.GetLabelAssociationAction()
|
||||
eventToDispatch = &events.LabelAssociationMessage{
|
||||
JID: jid,
|
||||
Timestamp: ts,
|
||||
LabelID: mutation.Index[1],
|
||||
MessageID: mutation.Index[3],
|
||||
Action: act,
|
||||
FromFullSync: fullSync,
|
||||
}
|
||||
}
|
||||
if storeUpdateError != nil {
|
||||
cli.Log.Errorf("Failed to update device store after app state mutation: %v", storeUpdateError)
|
||||
|
||||
Reference in New Issue
Block a user