mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-26 10:31:18 +00:00
Fix build for Linux.
This commit is contained in:
parent
d5b3fa017b
commit
b7aa60bedf
@ -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); })
|
||||
});
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user