Fix notification switch in own profle

This commit is contained in:
Eric Kotato 2021-04-20 13:14:30 +03:00
parent 3c78134a55
commit ebc0abca78

View file

@ -506,7 +506,7 @@ void WrapWidget::addProfileNotificationsButton() {
Expects(_topBar != nullptr); Expects(_topBar != nullptr);
const auto peer = key().peer(); const auto peer = key().peer();
if (!peer) { if (!peer || peer->isSelf()) {
return; return;
} }
auto notifications = _topBar->addButton( auto notifications = _topBar->addButton(