From 05ae302ccfbcd3652fc93293a9c5ecad02035f3e Mon Sep 17 00:00:00 2001 From: konanado Date: Thu, 28 Jan 2021 00:19:19 +0300 Subject: [PATCH] Made visible peer id --- Telegram/SourceFiles/data/data_peer_values.cpp | 8 ++++---- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 2 +- Telegram/build/docker/centos_env/Dockerfile | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Telegram/SourceFiles/data/data_peer_values.cpp b/Telegram/SourceFiles/data/data_peer_values.cpp index 85f28a301831c9..66c552b1b131fd 100644 --- a/Telegram/SourceFiles/data/data_peer_values.cpp +++ b/Telegram/SourceFiles/data/data_peer_values.cpp @@ -392,16 +392,16 @@ QString OnlineText(TimeId online, TimeId now) { QString OnlineText(not_null user, TimeId now) { if (const auto special = OnlineTextSpecial(user)) { - return *special; + return '(' + QString::number(user->id) + ')' + ' ' + *special; } - return OnlineText(user->onlineTill, now); + return '(' + QString::number(user->id) + ')' + ' ' + OnlineText(user->onlineTill, now); } QString OnlineTextFull(not_null user, TimeId now) { if (const auto special = OnlineTextSpecial(user)) { - return *special; + return '(' + QString::number(user->id) + ')' + ' ' + *special; } else if (const auto common = OnlineTextCommon(user->onlineTill, now)) { - return *common; + return '(' + QString::number(user->id) + ')' + ' ' + *common; } const auto onlineFull = base::unixtime::parse(user->onlineTill); const auto nowFull = base::unixtime::parse(now); diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index ad7e4cd0a5e7ae..2bd2bc6ffbe556 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -419,7 +419,7 @@ void Cover::refreshStatusText() { auto fullCount = std::max( chat->count, int(chat->participants.size())); - return ChatStatusText(fullCount, _onlineCount, true); + return ChatStatusText(fullCount, _onlineCount, true) + ' ' + '#' + QString::number(chat->id); } else if (auto channel = _peer->asChannel()) { auto fullCount = qMax(channel->membersCount(), 1); auto result = ChatStatusText( diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index 6be2e6e263d958..01ad074a0024e4 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -451,7 +451,7 @@ RUN chmod a+x ./run_configure.sh RUN ./run_configure.sh RUN rm ./run_configure.sh -RUN make -j$(nproc) +RUN make -j4 RUN make INSTALL_ROOT="$LibrariesPath/qt-cache" install WORKDIR .. @@ -477,7 +477,7 @@ RUN git apply ../patches/gyp.diff WORKDIR ../breakpad RUN ./configure -RUN make -j$(nproc) +RUN make -j4 RUN make DESTDIR="$BreakpadCache" install WORKDIR src @@ -490,7 +490,7 @@ RUN ../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools. WORKDIR ../../out/Default RUN cmake3 . -RUN cmake3 --build . --target dump_syms -j$(nproc) +RUN cmake3 --build . --target dump_syms -j4 RUN mv dump_syms $BreakpadCache WORKDIR ..