Fix gradient backgrounds parsing.

GitOrigin-RevId: 3e99be20fe65f4eca728fcc29e2c37b90ee92b3c
This commit is contained in:
levlam 2020-01-02 15:48:16 +03:00
parent 37d354d3c4
commit 170fd545fd

View File

@ -200,7 +200,7 @@ BackgroundType get_background_type(bool is_pattern,
}
}
if ((flags & telegram_api::wallPaperSettings::SECOND_BACKGROUND_COLOR_MASK) != 0) {
int32 second_color = settings->background_color_;
int32 second_color = settings->second_background_color_;
if (!is_valid_color(second_color)) {
LOG(ERROR) << "Receive " << to_string(settings);
second_color = 0;