mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix build with MSVC.
This commit is contained in:
@@ -444,7 +444,7 @@ void Cover::refreshUploadPhotoOverlay() {
|
||||
}(), [=](Ui::UserpicButton::ChosenImage chosen) {
|
||||
using ChosenType = Ui::UserpicButton::ChosenType;
|
||||
auto result = Api::PeerPhoto::UserPhoto{
|
||||
base::take(chosen.image),
|
||||
base::take<QImage>(chosen.image), // Strange MSVC bug with take.
|
||||
chosen.markup.documentId,
|
||||
chosen.markup.colors,
|
||||
};
|
||||
|
Reference in New Issue
Block a user