Refresh AI compose tones when the picker opens empty

This commit is contained in:
John Preston
2026-07-02 01:03:16 +04:00
parent feeb0f4203
commit 216df4a76e
@@ -1177,6 +1177,9 @@ ComposeAiContent::ComposeAiContent(
, _authorLabel(Ui::CreateChild<Ui::FlatLabel>(
this,
st::aiComposeAuthorLabel)) {
if (_richSource && _tones.empty()) {
_session->data().aiComposeTones().refresh();
}
_preview->setResizeCallback([=] { refreshLayout(); });
_preview->setChooseCallback([=] { chooseLanguage(); });
_preview->setCopyCallback([=] { copyResult(); });