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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user