| 926 | } |
| 927 | |
| 928 | bool ChatBackground::tile() const { |
| 929 | if (!started()) { |
| 930 | const auto &set = nightMode() |
| 931 | ? _localStoredTileNightValue |
| 932 | : _localStoredTileDayValue; |
| 933 | if (set.has_value()) { |
| 934 | return *set; |
| 935 | } |
| 936 | } |
| 937 | return nightMode() ? _tileNightValue : _tileDayValue; |
| 938 | } |
| 939 | |
| 940 | bool ChatBackground::tileDay() const { |
| 941 | if (!started() && _localStoredTileDayValue.has_value()) { |
no test coverage detected