mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Add .jpg to inputFile filename when photo is sent.
Server has some extensions checking for inputMediaUploadedPhoto, so force the extension to be .jpg anyway. It doesn't matter, because the filename from inputFile is not used anywhere. Also own PhotoData::UploadingData through std::unique_ptr.
This commit is contained in:
@@ -1602,8 +1602,7 @@ namespace {
|
||||
::photosData.erase(i);
|
||||
}
|
||||
convert->id = photo;
|
||||
delete convert->uploadingData;
|
||||
convert->uploadingData = 0;
|
||||
convert->uploadingData.reset();
|
||||
}
|
||||
if (date) {
|
||||
convert->access = access;
|
||||
|
Reference in New Issue
Block a user