mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Fixed build with Xcode.
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
|||||||
bool alwaysShowOutTimestamp() override {
|
bool alwaysShowOutTimestamp() override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool hasTextForCopy() const {
|
bool hasTextForCopy() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ public:
|
|||||||
void unloadHeavyPart() override;
|
void unloadHeavyPart() override;
|
||||||
|
|
||||||
void refreshLink() override;
|
void refreshLink() override;
|
||||||
bool hasTextForCopy() const {
|
bool hasTextForCopy() const override {
|
||||||
return isEmojiSticker();
|
return isEmojiSticker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -778,7 +778,7 @@ void Panel::openPopup(const QJsonObject &args) {
|
|||||||
{ "destructive", Type::Destructive },
|
{ "destructive", Type::Destructive },
|
||||||
};
|
};
|
||||||
auto buttons = std::vector<Webview::PopupArgs::Button>();
|
auto buttons = std::vector<Webview::PopupArgs::Button>();
|
||||||
for (const auto &button : args["buttons"].toArray()) {
|
for (const auto button : args["buttons"].toArray()) {
|
||||||
const auto fields = button.toObject();
|
const auto fields = button.toObject();
|
||||||
const auto i = types.find(fields["type"].toString());
|
const auto i = types.find(fields["type"].toString());
|
||||||
if (i == end(types)) {
|
if (i == end(types)) {
|
||||||
|
Reference in New Issue
Block a user