mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Version 4.11.
- View full statistics in your channels and group chats. - Choose which link preview in added to the message. - Choose if link preview is above or below the text. - Choose if link preview has large or small image. - Quote parts of text in replies. - Add quote formatting. - Reply in another chat. - Add nice looking code blocks with syntax highlighting. - Copy full code block by click on its header. - Send a highlighted code block using ```language syntax. - Change your name color in Chat Settings. - Customize quotes, link previews and replies to your messages.
This commit is contained in:
@@ -260,7 +260,7 @@ void AppConfig::parseColorIndices() {
|
||||
return colorIndex < Ui::kColorIndexCount;
|
||||
}
|
||||
};
|
||||
constexpr auto parseColors = [](const MTPJSONObjectValue &element) {
|
||||
const auto parseColors = [&](const MTPJSONObjectValue &element) {
|
||||
const auto &data = element.data();
|
||||
if (data.vvalue().type() != mtpc_jsonArray) {
|
||||
LOG(("API Error: Bad value for peer_colors element."));
|
||||
@@ -286,7 +286,7 @@ void AppConfig::parseColorIndices() {
|
||||
}
|
||||
return result;
|
||||
};
|
||||
constexpr auto checkColorsObjectType = [](const MTPJSONValue &value) {
|
||||
const auto checkColorsObjectType = [&](const MTPJSONValue &value) {
|
||||
if (value.type() != mtpc_jsonObject) {
|
||||
if (value.type() != mtpc_jsonArray
|
||||
|| !value.c_jsonArray().vvalue().v.empty()) {
|
||||
|
Reference in New Issue
Block a user