zulip-desktop icon indicating copy to clipboard operation
zulip-desktop copied to clipboard

Zulip send message via API formatting problems

Open fhsevenbel opened this issue 4 years ago • 2 comments

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):

  • Operating System: Our whole team has the same problems, we are using Windows 10 and POP!_OS

  • Zulip Desktop Version: 5.8.0

Additional context

fhsevenbel avatar Jul 22 '21 09:07 fhsevenbel

@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.

timabbott avatar Jul 22 '21 18:07 timabbott

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.

alexmv avatar Jul 22 '21 23:07 alexmv