From ce78074df7c7fc00640eb8c0b25bff75f8608fb5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Jan 2024 10:22:46 +0400 Subject: [PATCH] Fix build on Windows. --- Telegram/SourceFiles/history/history_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 1fc698dcf..7cbe283fe 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -949,7 +949,7 @@ void HistoryWidget::initVoiceRecordBar() { return false; }); _voiceRecordBar->setTTLFilter([=] { - if (const auto peer = _history ? _history->peer : nullptr) { + if (const auto peer = _history ? _history->peer.get() : nullptr) { if (const auto user = peer->asUser()) { if (!user->isSelf() && !user->isBot()) { return true;