MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / ShowUserBotIcon

Function ShowUserBotIcon

Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66const auto kPsaBadgePrefix = "cloud_lng_badge_psa_";
67
68[[nodiscard]] bool ShowUserBotIcon(not_null<UserData*> user) {
69 return user->isBot()
70 && !user->isSupport()
71 && !user->isRepliesChat()
72 && !user->isVerifyCodes();
73}
74
75[[nodiscard]] bool ShowSendActionInDialogs(Data::Thread *thread) {
76 const auto history = thread ? thread->owningHistory().get() : nullptr;

Callers 1

ChatTypeIconFunction · 0.85

Calls 4

isSupportMethod · 0.80
isRepliesChatMethod · 0.80
isVerifyCodesMethod · 0.80
isBotMethod · 0.45

Tested by

no test coverage detected