2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add SCAM badge for users and channels.

This commit is contained in:
John Preston
2019-06-23 14:18:33 +02:00
parent 88b7387a40
commit 352839337d
17 changed files with 332 additions and 61 deletions

View File

@@ -48,6 +48,7 @@ public:
| MTPDuser::Flag::f_bot_chat_history
| MTPDuser::Flag::f_bot_nochats
| MTPDuser::Flag::f_verified
| MTPDuser::Flag::f_scam
| MTPDuser::Flag::f_restricted
| MTPDuser::Flag::f_bot_inline_geo;
using Flags = Data::Flags<
@@ -119,6 +120,9 @@ public:
bool isVerified() const {
return flags() & MTPDuser::Flag::f_verified;
}
bool isScam() const {
return flags() & MTPDuser::Flag::f_scam;
}
bool isBotInlineGeo() const {
return flags() & MTPDuser::Flag::f_bot_inline_geo;
}