Fix build with Xcode.
This commit is contained in:
parent
bafb4f91b4
commit
0401364d71
|
@ -515,7 +515,7 @@ void Stories::parseAndApply(const MTPUserStories &stories) {
|
||||||
i->second = std::move(result);
|
i->second = std::move(result);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_all.emplace(peerId, std::move(result)).first;
|
_all.emplace(peerId, std::move(result));
|
||||||
}
|
}
|
||||||
const auto add = [&](StorySourcesList list) {
|
const auto add = [&](StorySourcesList list) {
|
||||||
auto &sources = _sources[static_cast<int>(list)];
|
auto &sources = _sources[static_cast<int>(list)];
|
||||||
|
@ -1251,7 +1251,7 @@ void Stories::sendIncrementViewsRequests() {
|
||||||
const auto api = &_owner->session().api();
|
const auto api = &_owner->session().api();
|
||||||
for (auto &[peer, ids] : prepared) {
|
for (auto &[peer, ids] : prepared) {
|
||||||
_incrementViewsRequests.emplace(peer);
|
_incrementViewsRequests.emplace(peer);
|
||||||
const auto finish = [=] {
|
const auto finish = [=, peer = peer] {
|
||||||
_incrementViewsRequests.remove(peer);
|
_incrementViewsRequests.remove(peer);
|
||||||
if (!_incrementViewsTimer.isActive()
|
if (!_incrementViewsTimer.isActive()
|
||||||
&& _incrementViewsPending.contains(peer)) {
|
&& _incrementViewsPending.contains(peer)) {
|
||||||
|
@ -1462,4 +1462,4 @@ bool Stories::isQuitPrevent() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Data
|
} // namespace Data
|
||||||
|
|
|
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "base/qt/qt_compare.h"
|
||||||
#include "base/expected.h"
|
#include "base/expected.h"
|
||||||
#include "base/timer.h"
|
#include "base/timer.h"
|
||||||
#include "base/weak_ptr.h"
|
#include "base/weak_ptr.h"
|
||||||
|
@ -155,15 +156,31 @@ enum class StorySourcesList : uchar {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StoriesContextSingle {
|
struct StoriesContextSingle {
|
||||||
|
friend inline auto operator<=>(
|
||||||
|
StoriesContextSingle,
|
||||||
|
StoriesContextSingle) = default;
|
||||||
|
friend inline bool operator==(StoriesContextSingle, StoriesContextSingle) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StoriesContextPeer {
|
struct StoriesContextPeer {
|
||||||
|
friend inline auto operator<=>(
|
||||||
|
StoriesContextPeer,
|
||||||
|
StoriesContextPeer) = default;
|
||||||
|
friend inline bool operator==(StoriesContextPeer, StoriesContextPeer) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StoriesContextSaved {
|
struct StoriesContextSaved {
|
||||||
|
friend inline auto operator<=>(
|
||||||
|
StoriesContextSaved,
|
||||||
|
StoriesContextSaved) = default;
|
||||||
|
friend inline bool operator==(StoriesContextSaved, StoriesContextSaved) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StoriesContextArchive {
|
struct StoriesContextArchive {
|
||||||
|
friend inline auto operator<=>(
|
||||||
|
StoriesContextArchive,
|
||||||
|
StoriesContextArchive) = default;
|
||||||
|
friend inline bool operator==(StoriesContextArchive, StoriesContextArchive) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StoriesContext {
|
struct StoriesContext {
|
||||||
|
|
|
@ -117,7 +117,7 @@ void ReplyArea::sendReaction(const Data::ReactionId &id) {
|
||||||
const auto id = Data::SerializeCustomEmojiId(customId);
|
const auto id = Data::SerializeCustomEmojiId(customId);
|
||||||
message.textWithTags = {
|
message.textWithTags = {
|
||||||
text,
|
text,
|
||||||
{ { 0, text.size(), Ui::InputField::CustomEmojiLink(id) } }
|
{ { 0, int(text.size()), Ui::InputField::CustomEmojiLink(id) } }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user