From 9dfb43d5257dd104de84e696e76c5e8cd1e64f6e Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 8 Jul 2021 16:05:17 +0300 Subject: [PATCH] Fixed build for macOS and Linux. --- .../SourceFiles/history/admin_log/history_admin_log_item.cpp | 1 - .../SourceFiles/platform/linux/linux_gtk_integration_dummy.cpp | 2 +- .../platform/mac/touchbar/items/mac_scrubber_item.mm | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp index 450186842..6ec80aad1 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -225,7 +225,6 @@ TextWithEntities GenerateBannedChangeText( ChatRestrictionsInfo newRights, ChatRestrictionsInfo prevRights) { using Flag = ChatRestriction; - using Flags = ChatRestrictions; auto newFlags = newRights.flags; auto newUntil = newRights.until; diff --git a/Telegram/SourceFiles/platform/linux/linux_gtk_integration_dummy.cpp b/Telegram/SourceFiles/platform/linux/linux_gtk_integration_dummy.cpp index 0c7f61d2b..927a7119d 100644 --- a/Telegram/SourceFiles/platform/linux/linux_gtk_integration_dummy.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_gtk_integration_dummy.cpp @@ -41,7 +41,7 @@ QString GtkIntegration::AllowedBackends() { return {}; } -int GtkIntegration:Exec( +int GtkIntegration::Exec( Type type, const QString &parentDBusName, const QString &serviceName) { diff --git a/Telegram/SourceFiles/platform/mac/touchbar/items/mac_scrubber_item.mm b/Telegram/SourceFiles/platform/mac/touchbar/items/mac_scrubber_item.mm index 968b802a5..adbf7e6ac 100644 --- a/Telegram/SourceFiles/platform/mac/touchbar/items/mac_scrubber_item.mm +++ b/Telegram/SourceFiles/platform/mac/touchbar/items/mac_scrubber_item.mm @@ -179,7 +179,7 @@ bool CanWriteToActiveChat(not_null controller) { std::optional RestrictionToSendStickers(not_null peer) { return Data::RestrictionError( peer, - ChatRestriction::f_send_stickers); + ChatRestriction::SendStickers); } std::optional RestrictionToSendStickers(