Skip to content
Snippets Groups Projects
Commit be8d7405 authored by germanocaumo's avatar germanocaumo
Browse files

fix: missing line break of poll chat export

parent 5c7fa6ec
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ const exportChat = (timeWindowList, users, intl) => { ...@@ -266,7 +266,7 @@ const exportChat = (timeWindowList, users, intl) => {
} else if (message.id.includes(CHAT_POLL_RESULTS_MESSAGE)) { } else if (message.id.includes(CHAT_POLL_RESULTS_MESSAGE)) {
userName = `${intl.formatMessage(intlMessages.pollResult)}:\n`; userName = `${intl.formatMessage(intlMessages.pollResult)}:\n`;
const { pollResultData } = timeWindow.extra; const { pollResultData } = timeWindow.extra;
const pollText = htmlDecode(PollService.getPollResultString(pollResultData, intl)); const pollText = htmlDecode(PollService.getPollResultString(pollResultData, intl).split('<br/>').join('\n'));
// remove last \n to avoid empty line // remove last \n to avoid empty line
messageText = pollText.slice(0, -1); messageText = pollText.slice(0, -1);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment