Change block context menu icon

This commit is contained in:
Ali 2020-09-18 22:00:55 +04:00
parent 7ff96bc501
commit 9529a6234b
4 changed files with 17 additions and 5 deletions

View File

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_blocked.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -1,9 +1,9 @@
{ {
"info" : { "info" : {
"version" : 1, "author" : "xcode",
"author" : "xcode" "version" : 1
}, },
"properties" : { "properties" : {
"provides-namespace" : true "provides-namespace" : true
} }
} }

View File

@ -838,8 +838,8 @@ func contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState:
interfaceInteraction.reportMessages(selectAll ? messages : [message], controller) interfaceInteraction.reportMessages(selectAll ? messages : [message], controller)
}))) })))
} else if message.id.peerId.isReplies { } else if message.id.peerId.isReplies {
actions.append(.action(ContextMenuActionItem(text: chatPresentationInterfaceState.strings.Conversation_ContextMenuBlock, icon: { theme in actions.append(.action(ContextMenuActionItem(text: chatPresentationInterfaceState.strings.Conversation_ContextMenuBlock, textColor: .destructive, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Report"), color: theme.actionSheet.primaryTextColor) return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Block"), color: theme.actionSheet.destructiveActionTextColor)
}, action: { controller, f in }, action: { controller, f in
interfaceInteraction.blockMessageAuthor(message, controller) interfaceInteraction.blockMessageAuthor(message, controller)
}))) })))