mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Moved PeerId parameter to SearchCalendarController constructor.
This commit is contained in:
@@ -2818,6 +2818,7 @@ void SessionController::showCalendar(ShowCalendarDescriptor &&descriptor) {
|
||||
}
|
||||
const auto search = std::make_shared<Api::SearchCalendarController>(
|
||||
&session(),
|
||||
history->peer->id,
|
||||
(descriptor.mediaPhoto && descriptor.mediaVideo)
|
||||
? Storage::SharedMediaType::PhotoVideo
|
||||
: descriptor.mediaPhoto
|
||||
@@ -2825,7 +2826,6 @@ void SessionController::showCalendar(ShowCalendarDescriptor &&descriptor) {
|
||||
: Storage::SharedMediaType::Video);
|
||||
return (ReturnType)[=](QDate date, Ui::CalendarImageSetter set) {
|
||||
search->monthThumbnails(
|
||||
peerId,
|
||||
base::unixtime::serialize(QDateTime(date, QTime())),
|
||||
[=](const std::vector<Api::DayThumbnail> &thumbnails) {
|
||||
for (const auto &thumb : thumbnails) {
|
||||
|
||||
Reference in New Issue
Block a user