Show "Hide My View" only for user stories.

This commit is contained in:
John Preston 2024-11-04 16:53:37 +04:00
parent 52953626a7
commit 93c01e5f1e

View file

@ -1806,7 +1806,10 @@ void OverlayWidget::fillContextMenuActions(
}, &st::mediaMenuIconStats);
}
}
if (_stories && _stories->allowStealthMode()) {
if (_stories
&& _stories->allowStealthMode()
&& story
&& story->peer()->isUser()) {
const auto now = base::unixtime::now();
const auto stealth = _session->data().stories().stealthMode();
addAction(tr::lng_stealth_mode_menu_item(tr::now), [=] {