mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
[manual] send_message: Rename recipient/stream fields to 'to'.
This commit changes APIs and requires and update of all zephyr mirroring bots to deploy properly. (imported from commit 2672d2d07269379f7a865644aaeb6796d54183e1)
This commit is contained in:
@@ -52,10 +52,13 @@ function send_message() {
|
||||
|
||||
var request = {client: 'website',
|
||||
type: compose.composing(),
|
||||
stream: compose.stream_name(),
|
||||
subject: compose.subject(),
|
||||
recipient: JSON.stringify(recipients),
|
||||
content: compose.message_content()};
|
||||
if (request.type === "private") {
|
||||
request.to = JSON.stringify(recipients);
|
||||
} else {
|
||||
request.to = compose.stream_name();
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
dataType: 'json', // This seems to be ignored. We still get back an xhr.
|
||||
|
||||
Reference in New Issue
Block a user