mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +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) {
|
||||
const auto i = ranges::lower_bound(snapshot.ids, _aroundId);
|
||||
const auto empty = snapshot.ids.empty();
|
||||
const auto before = (i - begin(snapshot.ids));
|
||||
const auto after = (end(snapshot.ids) - i);
|
||||
const auto before = int(i - begin(snapshot.ids));
|
||||
const auto after = int(end(snapshot.ids) - i);
|
||||
if (snapshot.ids.empty()) {
|
||||
_current = PinnedId();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue