mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on macOS.
This commit is contained in:
parent
d742fa32de
commit
47f5a66350
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ void PinnedTracker::setupViewer(not_null<Data::PinnedMessages*> data) {
|
||||||
) | rpl::start_with_next([=](const Data::PinnedAroundId &snapshot) {
|
) | rpl::start_with_next([=](const Data::PinnedAroundId &snapshot) {
|
||||||
const auto i = ranges::lower_bound(snapshot.ids, _aroundId);
|
const auto i = ranges::lower_bound(snapshot.ids, _aroundId);
|
||||||
const auto empty = snapshot.ids.empty();
|
const auto empty = snapshot.ids.empty();
|
||||||
const auto before = (i - begin(snapshot.ids));
|
const auto before = int(i - begin(snapshot.ids));
|
||||||
const auto after = (end(snapshot.ids) - i);
|
const auto after = int(end(snapshot.ids) - i);
|
||||||
if (snapshot.ids.empty()) {
|
if (snapshot.ids.empty()) {
|
||||||
_current = PinnedId();
|
_current = PinnedId();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue