From a00aa9a032e4e79c8b6da64fc6c2e653226c8ff0 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 06:16:19 +0300 Subject: [PATCH] [Improvement] Do not hide "open chat" button for own profile --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index a098faeb6..abebfecc4 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -620,6 +620,7 @@ Ui::MultiSlideTracker DetailsFiller::fillUserButtons( tracker); }; + /* if (user->isSelf()) { auto separator = _wrap->add(object_ptr>( _wrap, @@ -635,8 +636,11 @@ Ui::MultiSlideTracker DetailsFiller::fillUserButtons( std::move(tracker).atLeastOneShownValue() ); } else { + */ addSendMessageButton(); + /* } + */ return tracker; }