From a3791e5e31822e03748a6019e09d5ba4193fe9c8 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 ce5cf0d34..f454042f0 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -583,6 +583,7 @@ Ui::MultiSlideTracker DetailsFiller::fillUserButtons( tracker); }; + /* if (user->isSelf()) { auto separator = _wrap->add(object_ptr>( _wrap, @@ -598,8 +599,11 @@ Ui::MultiSlideTracker DetailsFiller::fillUserButtons( std::move(tracker).atLeastOneShownValue() ); } else { + */ addSendMessageButton(); + /* } + */ return tracker; }