2
0
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:
John Preston
2016-02-27 22:39:51 +03:00
parent 175968c3c0
commit a88b676588
19 changed files with 116 additions and 127 deletions

View File

@@ -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));
}