mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
[poll-view] Removed add-option for forwarded messages.
This commit is contained in:
@@ -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<HistoryMessageForwarded>()
|
||||
&& (int(_poll->answers.size())
|
||||
< _poll->session().appConfig().pollOptionsLimit());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user