1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net-im/telegram-desktop: update 4.15.2 -> 4.16.2

This commit is contained in:
Sergey A. Osokin 2024-04-05 16:44:45 -04:00
parent 4993dbe5de
commit 28e248a289
7 changed files with 20 additions and 58 deletions

View File

@ -0,0 +1,11 @@
--- Telegram/SourceFiles/iv/iv_data.cpp.orig 2024-04-03 14:15:01 UTC
+++ Telegram/SourceFiles/iv/iv_data.cpp
@@ -25,7 +25,7 @@ QByteArray GeoPointId(Geo point) {
const auto lon = int(point.lon * 1000000);
const auto combined = (std::uint64_t(std::uint32_t(lat)) << 32)
| std::uint64_t(std::uint32_t(lon));
- return QByteArray::number(combined)
+ return QByteArray::number(quint64(combined))
+ ','
+ QByteArray::number(point.access);
}

View File

@ -1,10 +0,0 @@
--- Telegram/SourceFiles/platform/linux/integration_linux.cpp.orig 2024-03-08 23:40:11 UTC
+++ Telegram/SourceFiles/platform/linux/integration_linux.cpp
@@ -27,6 +27,7 @@ namespace Platform {
namespace {
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
class Application : public Gio::impl::ApplicationImpl {
public:

View File

@ -1,10 +1,11 @@
--- Telegram/SourceFiles/platform/linux/specific_linux.cpp.orig 2024-03-08 21:33:12 UTC
--- Telegram/SourceFiles/platform/linux/specific_linux.cpp.orig 2024-04-05 17:15:54 UTC
+++ Telegram/SourceFiles/platform/linux/specific_linux.cpp
@@ -55,6 +55,7 @@ https://github.com/telegramdesktop/tdesktop/blob/maste
namespace {
@@ -510,7 +510,7 @@ QString SingleInstanceLocalServerName(const QString &h
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
std::optional<bool> IsDarkMode() {
- const auto result = base::Platform::XDP::ReadSetting(
+ auto result = base::Platform::XDP::ReadSetting(
"org.freedesktop.appearance",
"color-scheme");
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
namespace Gio = gi::repository::Gio;
using namespace Platform;
using Platform::internal::WaylandIntegration;

View File

@ -1,10 +0,0 @@
--- Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp.orig 2024-03-08 22:07:09 UTC
+++ Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp
@@ -30,6 +30,7 @@ namespace base::Platform {
namespace {
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
void PortalShowInFolder(const QString &filepath, Fn<void()> fail) {
XdpOpenURI::OpenURIProxy::new_for_bus(

View File

@ -1,10 +0,0 @@
--- Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp.orig 2024-03-08 22:01:55 UTC
+++ Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp
@@ -12,6 +12,7 @@ namespace base::Platform::DBus {
namespace {
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
gi::result<XdgDBus::DBus> MakeInterface(const GDBusConnection *connection) {
return XdgDBus::DBusProxy::new_sync(

View File

@ -1,10 +0,0 @@
--- Telegram/lib_base/base/platform/linux/base_power_save_blocker_linux.cpp.orig 2024-03-08 22:11:02 UTC
+++ Telegram/lib_base/base/platform/linux/base_power_save_blocker_linux.cpp
@@ -26,6 +26,7 @@ namespace base::Platform {
namespace {
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
constexpr auto kResetScreenSaverTimeout = 10 * crl::time(1000);

View File

@ -1,10 +0,0 @@
--- Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp.orig 2024-03-08 21:53:47 UTC
+++ Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
@@ -22,6 +22,7 @@ namespace base::Platform {
namespace {
using namespace gi::repository;
+namespace GObject = gi::repository::GObject;
void SnapDefaultHandler(const QString &protocol) {
Snapcraft::SettingsProxy::new_for_bus(