fix extract poll question crash
This commit is contained in:
parent
4356ea9e3d
commit
1cb880bb30
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user