Telegram-X icon indicating copy to clipboard operation
Telegram-X copied to clipboard

Feature: Premium badge

Open CalledLuca opened this issue 3 years ago • 2 comments

Description

I have implemented the premium badge, that is a small star near to the name of Premium users. In this pull request I also included some improvements to the already existing Verified badge: it wasn't displayed in some places in the app. Additionally, I improved the displaying of the SCAM and FAKE tags in various sections.

Details

  • I've followed the style of the existing Telegram X code as much as possible.
  • To implement this feature, I added four new drawable resources: three for the premium badge, and one for the verified badge (they have different sizes and they are used in different places).
  • You can find the places where I added the badge(s) by reading the Screenshot list below.

Screenshots

Here are some screenshots of the changes:

  1. Main chats list (premium badge)
  2. Chat open (premium badge)
  3. Profile view (premium badge)
  4. Members list (premium badge)
  5. Global search by username (premium badge)
  6. Accounts list (premium badge)
  7. Global search (verified badge)
  8. Global search (premium & verified badges)
  9. Forward message (premium & verified badges)
  10. Global search by first name (premium badge)
  11. Poll results (premium badge)
  12. Calls list (premium badge)
  13. Join requests
  14. Add members
  15. Blocked senders

As always, I'm ready to make improvements if necessary.

Special thanks to @vkryl for his help and his suggestions on creating this and other features! I hope everyone will like these changes. ⭐️

CalledLuca avatar Jul 22 '22 08:07 CalledLuca

Premium Badge Missing

  1. Voice Call Screen
  2. Side drawer current account name
  3. Account preview by holding account from side drawer

Verified Badge Missing

  1. Common groups section

Sajilck avatar Jul 23 '22 20:07 Sajilck

Premium Badge Missing

  1. Voice Call Screen
  2. Side drawer current account name
  3. Account preview by holding account from side drawer

Verified Badge Missing

  1. Common groups section

Thanks for the report, I'll add them in these places soon.

CalledLuca avatar Jul 23 '22 21:07 CalledLuca

I think this PR needs update to have Emoji Status view support as users can now choose Emoji Status instead Premium Badge.

Also premium Badge should use specific color not same color for everyone

Sajilck avatar Nov 16 '22 13:11 Sajilck

How use this help me please

Mr4zero avatar Dec 18 '22 20:12 Mr4zero

I suggest the Verified and the Premium should be addressed in 2 distinct PRs: only the Verified badge is an important security feature. Part of the Telegram X userbase abandoned the official client exactly to stop being exposed to the Premium bloat. If you really have to add it, it would be wise to limit its visibility by drawing it only inside the profile view, so to not compromise the existing UX. Sometimes less is more.

LorenzoAncora avatar May 22 '23 13:05 LorenzoAncora

Premium badge + emoji status now covered fully by #388. However, #388 lacks verified badge improvements that your PR has. If you wish, please submit a separate PR that addresses only verified badge.

vkryl avatar May 31 '23 09:05 vkryl