zulip / zulip-desktop

Zulip Desktop client for Mac, Windows and Linux.
https://zulip.com/apps
Apache License 2.0
840 stars 422 forks source link

Zulip send message via API formatting problems #1138

Open fhsevenbel opened 3 years ago

fhsevenbel commented 3 years ago

Describe the bug Since the new 5.8.0 update "\n" newlines are not recognized anymore, at least when sending messages via the api.

We posted messages via the https://zulip_url/api/v1/messages url to our zulip members With version 5.7.0 everything worked fine like this image

But on version 5.8.0 the newlines are ignored and it is just one really long string image

To Reproduce

Try sending a message using curl, containing a newline "\n" to the Zulip API. The newline will not be recognized

Expected behavior

The newline should be recognized and the message should be formatted correctly again

Pre 5.8.0

image

5.8.0

image

Desktop (please complete the following information):

Additional context

timabbott commented 3 years ago

@fabianhintringer this is a somewhat surprising outcome from a desktop client update; can you try testing if the messages format properly when using 5.7.0? If not, then the explanation is likely a server bug introduced around the same time.

alexmv commented 3 years ago

It would also help if you show how you're calling curl (be sure to redact any API tokens). But if you're calling curl directly, that's not going to be affected by the local version of the Zulip Desktop client.