| 1228 | } |
| 1229 | |
| 1230 | float64 MainWidget::chatBackgroundProgress() const { |
| 1231 | if (_background) { |
| 1232 | if (_background->generating) { |
| 1233 | return 1.; |
| 1234 | } else if (_background->data.document()) { |
| 1235 | return _background->dataMedia->progress(); |
| 1236 | } |
| 1237 | } |
| 1238 | return 1.; |
| 1239 | } |
| 1240 | |
| 1241 | void MainWidget::checkChatBackground() { |
| 1242 | if (!_background || _background->generating) { |
no test coverage detected