fix extract poll question crash

This commit is contained in:
Ramon Souza 2021-05-25 15:48:53 -03:00
parent 4356ea9e3d
commit 1cb880bb30
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ const extractPollQuestion = (pollText) => {
};
const isDefaultPoll = (pollText) => {
const { pollText: newPollText } = extractPollQuestion(pollText);
const { newPollText } = extractPollQuestion(pollText);
const pollValue = newPollText.replace(/<br\/>|[ :|%\n\d+]/g, '');
switch (pollValue) {

View File

@ -183,7 +183,7 @@ class MessageChatItem extends PureComponent {
let _text = text.replace('bbb-published-poll-<br/>', '');
const { pollQuestion, pollText: newPollText } = extractPollQuestion(_text);
const { pollQuestion, newPollText } = extractPollQuestion(_text);
_text = newPollText;
if (!isDefaultPoll) {