2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Move poll results to a Info-like layer.

This commit is contained in:
John Preston
2020-01-15 14:53:42 +03:00
parent d0597407d8
commit 8c11e1724a
18 changed files with 458 additions and 108 deletions

View File

@@ -34,7 +34,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/confirm_box.h"
#include "boxes/report_box.h"
#include "boxes/sticker_set_box.h"
#include "boxes/poll_results_box.h"
#include "chat_helpers/message_field.h"
#include "chat_helpers/stickers.h"
#include "history/history_widget.h"
@@ -2423,8 +2422,7 @@ void HistoryInner::elementStartStickerLoop(
void HistoryInner::elementShowPollResults(
not_null<PollData*> poll,
FullMsgId context) {
_controller->window().show(
Box(PollResultsBox, _controller, poll, context));
_controller->showPollResults(poll, context);
}
auto HistoryInner::getSelectionState() const