From 7d9e60dfdfcb19fa6b6dcc39bcb56ae55698ca52 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 1 Aug 2024 16:13:58 +0300 Subject: [PATCH] client: fix beeper inbox method --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 9c5ad194..3c91cb65 100644 --- a/client.go +++ b/client.go @@ -1934,7 +1934,7 @@ func (cli *Client) SetReadMarkers(ctx context.Context, roomID id.RoomID, content func (cli *Client) SetBeeperInboxState(ctx context.Context, roomID id.RoomID, content *ReqSetBeeperInboxState) (err error) { urlPath := cli.BuildClientURL("unstable", "com.beeper.inbox", "user", cli.UserID, "rooms", roomID, "inbox_state") - _, err = cli.MakeRequest(ctx, http.MethodPost, urlPath, content, nil) + _, err = cli.MakeRequest(ctx, http.MethodPut, urlPath, content, nil) return }