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:
@@ -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
|
||||
|
Reference in New Issue
Block a user