From 12eed5f433a0d7ab1d0461ec9c441cd0bff87bb4 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 9 Aug 2023 20:43:54 +0400 Subject: [PATCH] Get optional string support in cppgir --- Telegram/SourceFiles/platform/linux/integration_linux.cpp | 6 +++++- Telegram/lib_base | 2 +- Telegram/lib_webview | 2 +- cmake | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/integration_linux.cpp b/Telegram/SourceFiles/platform/linux/integration_linux.cpp index 61248cc95d..f13a96bce3 100644 --- a/Telegram/SourceFiles/platform/linux/integration_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/integration_linux.cpp @@ -241,7 +241,11 @@ void LinuxIntegration::initInhibit() { return; } - auto uniqueName = _inhibitProxy.get_connection().get_unique_name(); + auto uniqueName = _inhibitProxy + .get_connection() + .get_unique_name() + .value_or(""); + uniqueName.erase(0, 1); uniqueName.replace(uniqueName.find('.'), 1, 1, '_'); diff --git a/Telegram/lib_base b/Telegram/lib_base index 1726a4fda0..e497dc134d 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 1726a4fda092f910928f0e29eac358fc546d54a5 +Subproject commit e497dc134de3f8e2933ee0acdbba8bd702ce2130 diff --git a/Telegram/lib_webview b/Telegram/lib_webview index ebb8b8b91f..5850566934 160000 --- a/Telegram/lib_webview +++ b/Telegram/lib_webview @@ -1 +1 @@ -Subproject commit ebb8b8b91fe357b2c397a3eb98655c585b8c856e +Subproject commit 5850566934f2f6cae56646c36cb95f85c8a9c752 diff --git a/cmake b/cmake index 002093a8d0..92e35993aa 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 002093a8d0133f33758a8e559f53bef21175209b +Subproject commit 92e35993aa437ee212f677c96a717078124cfd65