Fix build on Windows.

This commit is contained in:
John Preston 2024-01-04 10:22:46 +04:00
parent 973f91b5e4
commit ce78074df7

View file

@ -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;