2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix build with Xcode.

This commit is contained in:
John Preston
2023-06-09 21:25:26 +04:00
parent bafb4f91b4
commit 0401364d71
3 changed files with 21 additions and 4 deletions

View File

@@ -515,7 +515,7 @@ void Stories::parseAndApply(const MTPUserStories &stories) {
i->second = std::move(result);
}
} else {
_all.emplace(peerId, std::move(result)).first;
_all.emplace(peerId, std::move(result));
}
const auto add = [&](StorySourcesList list) {
auto &sources = _sources[static_cast<int>(list)];
@@ -1251,7 +1251,7 @@ void Stories::sendIncrementViewsRequests() {
const auto api = &_owner->session().api();
for (auto &[peer, ids] : prepared) {
_incrementViewsRequests.emplace(peer);
const auto finish = [=] {
const auto finish = [=, peer = peer] {
_incrementViewsRequests.remove(peer);
if (!_incrementViewsTimer.isActive()
&& _incrementViewsPending.contains(peer)) {
@@ -1462,4 +1462,4 @@ bool Stories::isQuitPrevent() {
return true;
}
} // namespace Data
} // namespace Data