Skip to content

Commit

Permalink
signalmeow/attachments: update upload path
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir authored and AndrewFerr committed Oct 18, 2024
1 parent 829cbaf commit b2e418c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/signalmeow/attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (cli *Client) UploadAttachment(ctx context.Context, body []byte) (*signalpb
encryptedWithMAC := appendMAC(keys[32:], encrypted)

// Get upload attributes from Signal server
attributesPath := "/v3/attachments/form/upload"
attributesPath := "/v4/attachments/form/upload"
username, password := cli.Store.BasicAuthCreds()
opts := &web.HTTPReqOpt{Username: &username, Password: &password}
resp, err := web.SendHTTPRequest(ctx, http.MethodGet, attributesPath, opts)
Expand Down

0 comments on commit b2e418c

Please sign in to comment.