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