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

Function BadgeForInvite

Telegram/SourceFiles/api/api_chat_invite.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104[[nodiscard]] Info::Profile::BadgeType BadgeForInvite(
105 const ChatInvite &invite) {
106 using Type = Info::Profile::BadgeType;
107 return invite.isVerified
108 ? Type::Verified
109 : invite.isScam
110 ? Type::Scam
111 : invite.isFake
112 ? Type::Fake
113 : Type::None;
114}
115
116void SubmitChatInvite(
117 base::weak_ptr<Window::SessionController> weak,

Callers 1

ConfirmInviteBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected