2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added ability to set content to bar of pinned messages later.

This commit is contained in:
23rd
2022-04-22 22:08:24 +03:00
committed by John Preston
parent 7600c9bb2f
commit 16f616c5e0
4 changed files with 20 additions and 17 deletions

View File

@@ -6388,9 +6388,8 @@ void HistoryWidget::checkPinnedBarState() {
auto barContent = HistoryView::PinnedBarContent(
&session(),
_pinnedTracker->shownMessageId());
_pinnedBar = std::make_unique<Ui::PinnedBar>(
this,
std::move(barContent));
_pinnedBar = std::make_unique<Ui::PinnedBar>(this);
_pinnedBar->setContent(std::move(barContent));
Info::Profile::SharedMediaCountValue(
_peer,
nullptr,