mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix staying _replaceMedia button after media edit.
This commit is contained in:
parent
95174a5f36
commit
3a8237f03a
1 changed files with 4 additions and 0 deletions
|
@ -2131,6 +2131,7 @@ void HistoryWidget::showHistory(
|
||||||
_saveEditMsgRequestId = 0;
|
_saveEditMsgRequestId = 0;
|
||||||
_processingReplyItem = _replyEditMsg = nullptr;
|
_processingReplyItem = _replyEditMsg = nullptr;
|
||||||
_processingReplyId = _editMsgId = _replyToId = 0;
|
_processingReplyId = _editMsgId = _replyToId = 0;
|
||||||
|
_canReplaceMedia = false;
|
||||||
_photoEditMedia = nullptr;
|
_photoEditMedia = nullptr;
|
||||||
updateReplaceMediaButton();
|
updateReplaceMediaButton();
|
||||||
_previewData = nullptr;
|
_previewData = nullptr;
|
||||||
|
@ -2466,6 +2467,9 @@ void HistoryWidget::registerDraftSource() {
|
||||||
void HistoryWidget::setEditMsgId(MsgId msgId) {
|
void HistoryWidget::setEditMsgId(MsgId msgId) {
|
||||||
unregisterDraftSources();
|
unregisterDraftSources();
|
||||||
_editMsgId = msgId;
|
_editMsgId = msgId;
|
||||||
|
if (!msgId) {
|
||||||
|
_canReplaceMedia = false;
|
||||||
|
}
|
||||||
if (_history) {
|
if (_history) {
|
||||||
refreshSendAsToggle();
|
refreshSendAsToggle();
|
||||||
orderWidgets();
|
orderWidgets();
|
||||||
|
|
Loading…
Add table
Reference in a new issue