From 3bb8b52b4cff9ae3419e58a8292ab1b88355b1eb Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Mon, 10 Jan 2022 03:11:27 +0300 Subject: [PATCH] Disable avatar cropping in Windows notifications with non-circle avatars --- .../SourceFiles/platform/win/notifications_manager_win.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp index b761b06fa..92b7b88b1 100644 --- a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp +++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp @@ -56,6 +56,7 @@ namespace { [[nodiscard]] std::wstring NotificationTemplate( QString id, Window::Notifications::Manager::DisplayOptions options) { + const auto crop = (cUserpicCornersType() == 3) ? L"circle" : L"none"; const auto wid = id.replace('&', "&").toStdWString(); const auto fastReply = LR"( @@ -78,7 +79,7 @@ namespace { - +