Remove incorrect "ignored" comments in conversion from secret chat objects.

This commit is contained in:
levlam 2023-06-23 16:28:48 +03:00
parent c34b4c3ef7
commit 8d7262836b

View File

@ -4483,7 +4483,7 @@ static auto secret_to_telegram(secret_api::documentAttributeAnimated &animated)
// documentAttributeSticker23 = DocumentAttribute;
static auto secret_to_telegram(secret_api::documentAttributeSticker23 &sticker) {
return make_tl_object<telegram_api::documentAttributeSticker>(
0, false /*ignored*/, "", make_tl_object<telegram_api::inputStickerSetEmpty>(), nullptr);
0, false, "", make_tl_object<telegram_api::inputStickerSetEmpty>(), nullptr);
}
static auto secret_to_telegram(secret_api::inputStickerSetEmpty &sticker_set) {
@ -4503,14 +4503,13 @@ static auto secret_to_telegram(secret_api::documentAttributeSticker &sticker) {
sticker.alt_.clear();
}
return make_tl_object<telegram_api::documentAttributeSticker>(
0, false /*ignored*/, sticker.alt_, secret_to_telegram<telegram_api::InputStickerSet>(*sticker.stickerset_),
nullptr);
0, false, sticker.alt_, secret_to_telegram<telegram_api::InputStickerSet>(*sticker.stickerset_), nullptr);
}
// documentAttributeVideo23 duration:int w:int h:int = DocumentAttribute;
static auto secret_to_telegram(secret_api::documentAttributeVideo23 &video) {
return make_tl_object<telegram_api::documentAttributeVideo>(
0, false /*ignored*/, false /*ignored*/, false /*ignored*/, video.duration_, video.w_, video.h_, 0);
return make_tl_object<telegram_api::documentAttributeVideo>(0, false, false, false, video.duration_, video.w_,
video.h_, 0);
}
// documentAttributeFilename file_name:string = DocumentAttribute;
@ -4525,7 +4524,7 @@ static auto secret_to_telegram(secret_api::documentAttributeFilename &filename)
static auto secret_to_telegram(secret_api::documentAttributeVideo &video) {
return make_tl_object<telegram_api::documentAttributeVideo>(
video.round_message_ ? telegram_api::documentAttributeVideo::ROUND_MESSAGE_MASK : 0, video.round_message_, false,
false /*ignored*/, video.duration_, video.w_, video.h_, 0);
false, video.duration_, video.w_, video.h_, 0);
}
static auto telegram_documentAttributeAudio(bool is_voice_note, int duration, string title, string performer,