Fix notification switch in own profle
This commit is contained in:
parent
3c78134a55
commit
ebc0abca78
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue