api: Remove '/users/me/enter-sends' endpoint.

We remove the '/users/me/enter-sends' endpoint
and 'enter_sends' setting will now be edited
using the '/settings' endpoint.
This commit is contained in:
Sahil Batra
2021-07-22 21:44:28 +05:30
committed by Tim Abbott
parent 7d9e71be21
commit 318d71469b
9 changed files with 30 additions and 47 deletions

View File

@@ -1093,8 +1093,8 @@ export function initialize() {
// press Enter to send.
$("#compose-textarea").trigger("focus");
return channel.post({
url: "/json/users/me/enter-sends",
return channel.patch({
url: "/json/settings",
idempotent: true,
data: {enter_sends: page_params.enter_sends},
});