diff --git a/portal.go b/portal.go index 8bff9161..4a3ee329 100644 --- a/portal.go +++ b/portal.go @@ -2793,8 +2793,8 @@ func (portal *Portal) convertPollCreationMessage(intent *appservice.IntentAPI, m }, } } - body := fmt.Sprintf("%s\n\n%s", msg.GetName(), strings.Join(optionsListText, "\n")) - formattedBody := fmt.Sprintf("

%s

    %s
", event.TextToHTML(msg.GetName()), strings.Join(optionsListHTML, "")) + body := fmt.Sprintf("%s\n\n%s\n\n(This message is a poll. Please open WhatsApp to vote.)", msg.GetName(), strings.Join(optionsListText, "\n")) + formattedBody := fmt.Sprintf("

%s

    %s

(This message is a poll. Please open WhatsApp to vote.)

", event.TextToHTML(msg.GetName()), strings.Join(optionsListHTML, "")) maxChoices := int(msg.GetSelectableOptionsCount()) if maxChoices <= 0 { maxChoices = len(optionNames)