Don't show 406 error messages in AI.

This commit is contained in:
John Preston
2026-04-21 17:50:58 +07:00
parent c79f62d874
commit ae7ab838f4
3 changed files with 16 additions and 0 deletions
@@ -1203,6 +1203,10 @@ void ComposeAiContent::request() {
return;
}
weak->_requestId = 0;
if (MTP::IgnoreError(error)) {
weak->resetState(CardState::Waiting);
return;
}
weak->showError(error.type());
});
}