mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix build with Xcode.
This commit is contained in:
parent
bafb4f91b4
commit
0401364d71
3 changed files with 21 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include "base/qt/qt_compare.h"
|
||||
#include "base/expected.h"
|
||||
#include "base/timer.h"
|
||||
#include "base/weak_ptr.h"
|
||||
|
@ -155,15 +156,31 @@ enum class StorySourcesList : uchar {
|
|||
};
|
||||
|
||||
struct StoriesContextSingle {
|
||||
friend inline auto operator<=>(
|
||||
StoriesContextSingle,
|
||||
StoriesContextSingle) = default;
|
||||
friend inline bool operator==(StoriesContextSingle, StoriesContextSingle) = default;
|
||||
};
|
||||
|
||||
struct StoriesContextPeer {
|
||||
friend inline auto operator<=>(
|
||||
StoriesContextPeer,
|
||||
StoriesContextPeer) = default;
|
||||
friend inline bool operator==(StoriesContextPeer, StoriesContextPeer) = default;
|
||||
};
|
||||
|
||||
struct StoriesContextSaved {
|
||||
friend inline auto operator<=>(
|
||||
StoriesContextSaved,
|
||||
StoriesContextSaved) = default;
|
||||
friend inline bool operator==(StoriesContextSaved, StoriesContextSaved) = default;
|
||||
};
|
||||
|
||||
struct StoriesContextArchive {
|
||||
friend inline auto operator<=>(
|
||||
StoriesContextArchive,
|
||||
StoriesContextArchive) = default;
|
||||
friend inline bool operator==(StoriesContextArchive, StoriesContextArchive) = default;
|
||||
};
|
||||
|
||||
struct StoriesContext {
|
||||
|
|
|
@ -117,7 +117,7 @@ void ReplyArea::sendReaction(const Data::ReactionId &id) {
|
|||
const auto id = Data::SerializeCustomEmojiId(customId);
|
||||
message.textWithTags = {
|
||||
text,
|
||||
{ { 0, text.size(), Ui::InputField::CustomEmojiLink(id) } }
|
||||
{ { 0, int(text.size()), Ui::InputField::CustomEmojiLink(id) } }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue