From 08f9fb2492dfa9d8dc1874ecfd2915f1497c32f0 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 1 Apr 2026 20:35:42 +0300 Subject: [PATCH] [poll-view] Removed add-option for forwarded messages. --- Telegram/SourceFiles/history/view/media/history_view_poll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp index 602708b67a..eb1ff0aa75 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp @@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "lang/lang_keys.h" #include "history/history.h" #include "history/history_item.h" +#include "history/history_item_components.h" #include "history/view/history_view_message.h" #include "history/view/history_view_cursor_state.h" #include "history/view/history_view_reaction_preview.h" @@ -1887,6 +1888,7 @@ bool Poll::inlineFooter() const { bool Poll::canAddOption() const { return (_flags & PollData::Flag::OpenAnswers) && !(_flags & PollData::Flag::Closed) + && !_parent->data()->Has() && (int(_poll->answers.size()) < _poll->session().appConfig().pollOptionsLimit()); }