mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
global shortcuts with loading from .json map
This commit is contained in:
@@ -2352,12 +2352,12 @@ namespace Local {
|
||||
_readDraftCursors(peer, msgCursor, editCursor);
|
||||
|
||||
if (msgText.isEmpty() && !msgReplyTo) {
|
||||
h->setMsgDraft(Nil);
|
||||
h->setMsgDraft(nullptr);
|
||||
} else {
|
||||
h->setMsgDraft(new HistoryDraft(msgText, msgReplyTo, msgCursor, msgPreviewCancelled));
|
||||
}
|
||||
if (!editMsgId) {
|
||||
h->setEditDraft(Nil);
|
||||
h->setEditDraft(nullptr);
|
||||
} else {
|
||||
h->setEditDraft(new HistoryEditDraft(editText, editMsgId, editCursor, editPreviewCancelled));
|
||||
}
|
||||
|
Reference in New Issue
Block a user