Fix build for Linux.

This commit is contained in:
John Preston 2020-05-29 22:06:40 +04:00
parent d5b3fa017b
commit b7aa60bedf
4 changed files with 6 additions and 8 deletions

View File

@ -185,7 +185,7 @@ void FilterChatsPreview::updateData(
}
}
for (const auto history : peers) {
_removePeer.push_back({
_removePeer.push_back(PeerButton{
.history = history,
.button = makeButton([=] { removePeer(history); })
});

View File

@ -14,8 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/image/image.h"
#include "main/main_session.h"
#include <compare>
namespace Data {
void CloudImageView::set(
@ -314,4 +312,4 @@ void LoadCloudFile(
std::move(progress));
}
} // namespace Data
} // namespace Data

View File

@ -29,8 +29,7 @@ enum class PhotoSize : uchar {
};
[[nodiscard]] inline int PhotoSizeIndex(PhotoSize size) {
Expects(static_cast<int>(size) >= 0
&& static_cast<int>(size) < kPhotoSizeCount);
Expects(static_cast<int>(size) < kPhotoSizeCount);
return static_cast<int>(size);
}

View File

@ -1,3 +1,4 @@
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
@ -533,8 +534,8 @@ void Manager::Private::showNotification(
hideReplyButton);
if (!hideNameAndPhoto) {
const auto key = peer->userpicUniqueKey();
notification->setImage(_cachedUserpics.get(key, peer));
const auto key = peer->userpicUniqueKey(userpicView);
notification->setImage(_cachedUserpics.get(key, peer, userpicView));
}
auto i = _notifications.find(peer->id);