2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix crash on local edit draft, fix reading drafts.

This commit is contained in:
John Preston
2022-11-01 17:16:02 +04:00
parent f13a2517cd
commit c6aba83a6b
2 changed files with 4 additions and 3 deletions

View File

@@ -1363,8 +1363,8 @@ void Account::readDraftsWithCursors(not_null<History*> history) {
for (auto i = 0; i != count; ++i) {
TextWithTags data;
QByteArray tagsSerialized;
qint64 keyValue = 0;
qint32 keyValueOld = 0, messageId = 0, uncheckedPreviewState = 0;
qint64 keyValue = 0, messageId = 0;
qint32 keyValueOld = 0, uncheckedPreviewState = 0;
if (keysOld) {
draft.stream >> keyValueOld;
} else {