mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 11:50:56 +00:00
Fix search peer marks
This commit is contained in:
parent
69f9de35d1
commit
5ab1ec2251
@ -1059,7 +1059,22 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
|||||||
currentSecretIconImage = PresentationResourcesChatList.secretIcon(item.presentationData.theme)
|
currentSecretIconImage = PresentationResourcesChatList.secretIcon(item.presentationData.theme)
|
||||||
}
|
}
|
||||||
var credibilityIconOffset: CGFloat = 0.0
|
var credibilityIconOffset: CGFloat = 0.0
|
||||||
if case let .chat(itemPeer) = contentPeer, let peer = itemPeer.chatMainPeer {
|
if displayAsMessage {
|
||||||
|
switch item.content {
|
||||||
|
case let .peer(message, _, _, _, _, _, _, _, _, _, _):
|
||||||
|
if let peer = message?.author {
|
||||||
|
if peer.isScam {
|
||||||
|
currentCredibilityIconImage = PresentationResourcesChatList.scamIcon(item.presentationData.theme, type: .regular)
|
||||||
|
credibilityIconOffset = 2.0
|
||||||
|
} else if peer.isVerified {
|
||||||
|
currentCredibilityIconImage = PresentationResourcesChatList.verifiedIcon(item.presentationData.theme)
|
||||||
|
credibilityIconOffset = 3.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
} else if case let .chat(itemPeer) = contentPeer, let peer = itemPeer.chatMainPeer {
|
||||||
if peer.isScam {
|
if peer.isScam {
|
||||||
currentCredibilityIconImage = PresentationResourcesChatList.scamIcon(item.presentationData.theme, type: .regular)
|
currentCredibilityIconImage = PresentationResourcesChatList.scamIcon(item.presentationData.theme, type: .regular)
|
||||||
credibilityIconOffset = 2.0
|
credibilityIconOffset = 2.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user