parley-messaging / ios-library

Parley iOS app library
MIT License
2 stars 2 forks source link

Some special characters are formatted incorrectly #138

Closed nlamah closed 3 months ago

nlamah commented 3 months ago

Describe the Bug Messages from the agent that contain one the following characters &"' are not formatted correctly.

To Reproduce

Screenshots Screenshot 2024-06-17 at 12 56 29

alexkok commented 3 months ago

Thanks for reporting, however, we don't see this happening. Tested with chatting via the dashboard and tested with using the serviceApi v2.1.

How are you sending the data from the backend exactly? Make sure it isn't encoding the characters there.

For example, we send this to the serviceApi and it shows as expected:

POST https://api.parley.nu/serviceApi/v2.1/users/<id>/messages
Authorization: ...
Content-Type: application/json

{
  "message": "Do you want more information? & ' \""
}
Gerben-T commented 3 months ago

This was an issue in the Parley Dashboard (messages sent by the agents were incorrectly encoded before they reached Parley Messaging) and has been resolved already. I suggest we close this issue.