2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed work with _msgIdToEdit in FileLoadTask.

- Added check is allowed media editing in paintEvent.
 - Fixes #5885.
This commit is contained in:
23rd
2019-04-06 10:09:55 +03:00
committed by John Preston
parent 3744bdcbe7
commit 37af963717
3 changed files with 5 additions and 2 deletions

View File

@@ -539,6 +539,7 @@ FileLoadTask::FileLoadTask(
, _type(type)
, _caption(caption)
, _msgIdToEdit(msgIdToEdit) {
Expects(_msgIdToEdit == 0 || IsServerMsgId(_msgIdToEdit));
}
FileLoadTask::FileLoadTask(

View File

@@ -323,7 +323,7 @@ private:
VoiceWaveform _waveform;
SendMediaType _type;
TextWithTags _caption;
MsgId _msgIdToEdit;
MsgId _msgIdToEdit = 0;
std::shared_ptr<FileLoadResult> _result;