@@ -113,17 +113,26 @@ class Item extends React.Component {
113
113
const { isOther} = navigation . state . params ;
114
114
const { mediaCID, mimeType} = extractMedia ( item . value ) ;
115
115
let displayKey = item . key ;
116
+ let displayValue = item . value ;
117
+ let isBid = false ;
116
118
const { keyType} = parseSpecialKey ( item . key ) ;
117
119
if ( keyType ) {
118
- displayKey = getSpecialKeyText ( keyType ) ;
120
+ // TODO: fix this special hack for bidding.
121
+ if ( keyType == 'comment' && displayValue . startsWith ( 'psbt' ) ) {
122
+ displayKey = loc . namespaces . make_offer ;
123
+ displayValue = '' ;
124
+ isBid = true ;
125
+ } else {
126
+ displayKey = getSpecialKeyText ( keyType ) ;
127
+ }
119
128
}
120
129
if ( ( typeof displayKey ) != 'string' ) {
121
130
displayKey = 'Unknown ' + item . height ;
122
131
} else if ( displayKey . startsWith ( '__WALLET_TRANSFER__' ) ) {
123
132
displayKey = loc . namespaces . ns_transfer_explain ;
124
133
}
125
134
126
- const canEdit = ! isOther && item . type !== 'REG' && keyType != 'profile' ;
135
+ const canEdit = ! isOther && item . type !== 'REG' && keyType != 'profile' && ! isBid ;
127
136
128
137
return (
129
138
< View style = { styles . card } >
@@ -157,7 +166,7 @@ class Item extends React.Component {
157
166
:
158
167
< Text style = { styles . timestamp } > { loc . general . unconfirmed } </ Text >
159
168
}
160
- < Text style = { styles . valueDesc } numberOfLines = { 3 } ellipsizeMode = "tail" > { this . stripHtml ( removeMedia ( item . value ) ) } </ Text >
169
+ < Text style = { styles . valueDesc } numberOfLines = { 3 } ellipsizeMode = "tail" > { this . stripHtml ( removeMedia ( displayValue ) ) } </ Text >
161
170
{
162
171
mediaCID && (
163
172
mimeType . startsWith ( 'video' ) ?
0 commit comments