From 1666683dbb0658363a0287dc867f41a783560b42 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 29 Dec 2022 06:52:15 +0400 Subject: [PATCH] Fix various line length in notifications_manager_linux --- .../linux/notifications_manager_linux.cpp | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 2184fcecdd..880efc840b 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -132,7 +132,9 @@ void StartServiceAsync(Fn callback) { const auto errorName = Gio::DBus::ErrorUtils::get_remote_error(e).raw(); - if (!ranges::contains(NotSupportedErrors, errorName)) { + if (!ranges::contains( + NotSupportedErrors, + errorName)) { throw e; } } @@ -534,12 +536,13 @@ bool NotificationData::init( _actions.push_back( tr::lng_notification_reply(tr::now).toStdString()); - _notificationRepliedSignalId = _dbusConnection->signal_subscribe( - signalEmitted, - std::string(kService), - std::string(kInterface), - "NotificationReplied", - std::string(kObjectPath)); + _notificationRepliedSignalId = + _dbusConnection->signal_subscribe( + signalEmitted, + std::string(kService), + std::string(kInterface), + "NotificationReplied", + std::string(kObjectPath)); } else { // icon name according to https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html _actions.push_back("mail-reply-sender"); @@ -895,7 +898,8 @@ void Create(Window::Notifications::System *system) { return; } - GetServerInformation([=](const std::optional &result) { + GetServerInformation([=]( + const std::optional &result) { CurrentServerInformation = result; oneReady(); });