mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
improved media caption edit in box, need to make post edit in message field
This commit is contained in:
@@ -6637,7 +6637,13 @@ void HistoryWidget::onEditMessage() {
|
||||
HistoryItem *to = App::contextItem();
|
||||
if (!to || !to->history()->peer->isChannel()) return;
|
||||
|
||||
Ui::showLayer(new EditPostBox(to));
|
||||
EditCaptionBox *box = new EditCaptionBox(to);
|
||||
if (box->captionFound()) {
|
||||
Ui::showLayer(box);
|
||||
} else {
|
||||
delete box;
|
||||
// edit post
|
||||
}
|
||||
}
|
||||
|
||||
bool HistoryWidget::lastForceReplyReplied(const FullMsgId &replyTo) const {
|
||||
|
Reference in New Issue
Block a user