Fix clone icons not being used in review context
@@ -55,12 +55,16 @@ static const nbgl_icon_details_t *get_tx_icon(void) {
|
||||
const nbgl_icon_details_t *icon = NULL;
|
||||
|
||||
if (tx_approval_context.fromPlugin && (pluginType == EXTERNAL)) {
|
||||
if (caller_app && caller_app->name) {
|
||||
if ((strlen(strings.common.toAddress) == strlen(caller_app->name)) &&
|
||||
(strcmp(strings.common.toAddress, caller_app->name) == 0)) {
|
||||
if ((caller_app != NULL) && (caller_app->name != NULL)) {
|
||||
if (strcmp(strings.common.toAddress, caller_app->name) == 0) {
|
||||
icon = get_app_icon(true);
|
||||
}
|
||||
}
|
||||
// icon is NULL in this case
|
||||
// Check with Alex if this is expected or a bug
|
||||
} else if ((caller_app != NULL) && !tx_approval_context.fromPlugin) {
|
||||
// Clone case
|
||||
icon = get_app_icon(true);
|
||||
} else {
|
||||
uint64_t chain_id = get_tx_chain_id();
|
||||
if (chain_id == chainConfig->chainId) {
|
||||
|
||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 8.8 KiB |