deps: bump whatsmeow to 2026-11-02 (fix 405 client outdated)
whatsmeow was pinned to 2026-06-30 (v0.0.0-20260630180629-b572e5bcb92b),
which predates WhatsApp's minimum client version bump and causes
405 client-outdated connect failures.
- go.mau.fi/whatsmeow -> v0.0.0-20261102152715-54038813c47f
- go.mau.fi/util 0.9.10 -> 0.11.0, x/{crypto,net,sync,sys,text,tools} bumped
- go directive 1.25.0 -> 1.26.0 (upstream minimum), Dockerfile builder
golang:1.25.0-alpine -> golang:1.26.10-alpine
API adaptations:
- UpdateBlocklist/GetBlocklist now take a dhash argument
- SetStatusMessage takes types.SetStatusInput (text behind mex query)
Store schema upgrades to v16 (companion_meta_nonce, wasa_root_secret_id)
run automatically on container open; verified against a v14 sqlite auth DB.
This commit is contained in:
1 parent
9337afc47e
commit
99b4d78f62
4 files changed
+47
-45
No files matched your search
@@ -444,7 +444,7 @@ func (u *userService) BlockContact(data *BlockStruct, instance *instance_model.I
|
||||
return nil, errors.New("invalid phone number")
|
||||
}
|
||||
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionBlock)
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionBlock, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -463,7 +463,7 @@ func (u *userService) UnlockContact(data *BlockStruct, instance *instance_model.
|
||||
return nil, errors.New("invalid phone number")
|
||||
}
|
||||
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionUnblock)
|
||||
resp, err := client.UpdateBlocklist(context.Background(), jid, events.BlocklistChangeActionUnblock, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -477,7 +477,7 @@ func (u *userService) GetBlockList(instance *instance_model.Instance) (*types.Bl
|
||||
return nil, err
|
||||
}
|
||||
|
||||
resp, err := client.GetBlocklist(context.Background())
|
||||
resp, err := client.GetBlocklist(context.Background(), "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -532,7 +532,9 @@ func (u *userService) SetProfileStatus(data *SetProfileStatusStruct, instance *i
|
||||
return false, err
|
||||
}
|
||||
|
||||
err = client.SetStatusMessage(context.Background(), data.Status)
|
||||
err = client.SetStatusMessage(context.Background(), types.SetStatusInput{
|
||||
Text: &data.Status,
|
||||
})
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user