| 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 | |
| 116 | void SubmitChatInvite( |
| 117 | base::weak_ptr<Window::SessionController> weak, |