Fix single chat export buttons.

Fixes #5120.
This commit is contained in:
John Preston 2018-09-21 12:51:06 +03:00
parent d601b60903
commit 96556d4a4c

View file

@ -297,7 +297,7 @@ not_null<Ui::RpWidget*> SettingsWidget::setupButtons(
}));
value() | rpl::map([](const Settings &data) {
return data.types != Types(0);
return (data.types != Types(0)) || data.onlySinglePeer();
}) | rpl::distinct_until_changed(
) | rpl::start_with_next([=](bool canStart) {
refreshButtons(buttons, canStart);