Skip to content

Commit

Permalink
Version 4.14.13: Always send webpages optionally.
Browse files Browse the repository at this point in the history
If the link cannot be displayed everywhere
(channel blocked in some countries) the
send request without `optional` flag fails.
  • Loading branch information
john-preston committed Feb 2, 2024
1 parent 6185fa9 commit 2f0b50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/data_histories.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ MTPInputMedia WebPageForMTP(
bool required) {
using Flag = MTPDinputMediaWebPage::Flag;
return MTP_inputMediaWebPage(
MTP_flags((required ? Flag() : Flag::f_optional)
MTP_flags(((false && required) ? Flag() : Flag::f_optional)
| (draft.forceLargeMedia ? Flag::f_force_large_media : Flag())
| (draft.forceSmallMedia ? Flag::f_force_small_media : Flag())),
MTP_string(draft.url));
Expand Down

0 comments on commit 2f0b50c

Please sign in to comment.