mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix editing media captions with custom emoji.
This commit is contained in:
parent
9105677325
commit
c8c3f43853
1 changed files with 4 additions and 2 deletions
|
@ -128,8 +128,7 @@ EditCaptionBox::EditCaptionBox(
|
|||
this,
|
||||
st::confirmCaptionArea,
|
||||
Ui::InputField::Mode::MultiLine,
|
||||
tr::lng_photo_caption(),
|
||||
PrepareEditText(item)))
|
||||
tr::lng_photo_caption()))
|
||||
, _emojiToggle(base::make_unique_q<Ui::EmojiButton>(
|
||||
this,
|
||||
st::boxAttachEmoji)) {
|
||||
|
@ -280,6 +279,9 @@ void EditCaptionBox::setupField() {
|
|||
}
|
||||
Unexpected("Action in MimeData hook.");
|
||||
});
|
||||
_field->setTextWithTags(
|
||||
PrepareEditText(_historyItem),
|
||||
Ui::InputField::HistoryAction::Clear);
|
||||
|
||||
auto cursor = _field->textCursor();
|
||||
cursor.movePosition(QTextCursor::End);
|
||||
|
|
Loading…
Add table
Reference in a new issue