2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Show nice padded code blocks.

This commit is contained in:
John Preston
2023-10-13 10:04:29 +04:00
parent dd692f2d26
commit 0e79bd3d12
47 changed files with 187 additions and 46 deletions

View File

@@ -1519,7 +1519,11 @@ bool SessionController::switchInlineQuery(
'@' + bot->username() + ' ' + query,
TextWithTags::Tags(),
};
MessageCursor cursor = { int(textWithTags.text.size()), int(textWithTags.text.size()), QFIXED_MAX };
MessageCursor cursor = {
int(textWithTags.text.size()),
int(textWithTags.text.size()),
Ui::kQFixedMax
};
auto draft = std::make_unique<Data::Draft>(
textWithTags,
to.currentReplyToId,