Browse Source

FIX: Restore Additional Information button

acinq-only
Marcos Rodriguez Vélez 6 years ago
parent
commit
1f6f79f450
  1. 9
      class/acinqStrikeWallet.js
  2. 6
      screen/lnd/lndViewInvoice.js

9
class/acinqStrikeWallet.js

@ -58,9 +58,9 @@ export class ACINQStrikeLightningWallet extends LegacyWallet {
}
/**
* Returns list of LND invoices created by user
* Returns a "charge" object of belonging to the provided chargeId
*
* @return {Promise.<Array>}
* @return {Promise.<Object>}
*/
async getCharge(chargeId) {
let response = await this._api.get('/charges/' + chargeId);
@ -81,6 +81,11 @@ export class ACINQStrikeLightningWallet extends LegacyWallet {
return usercharges;
}
async fetchBalance() {
const transactions = await this.fetchTransactions();
return transactions;
}
async getUserCharges() {
let response = await this._api.get('/charges');
let json = response.body;

6
screen/lnd/lndViewInvoice.js

@ -12,7 +12,7 @@ import {
import PropTypes from 'prop-types';
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
import { Icon } from 'react-native-elements';
import { ACINQStrikeLightningWallet } from '../../class/';
import { ACINQStrikeLightningWallet, LightningCustodianWallet } from '../../class/';
/** @type {AppStorage} */
let BlueApp = require('../../BlueApp');
const loc = require('../../loc');
@ -229,9 +229,8 @@ export default class LNDViewInvoice extends Component {
title={loc.receive.details.share}
/>
<BlueSpacing20 />
{this.state.fromWallet.info_raw && (
{this.state.fromWallet.type === LightningCustodianWallet.type && (
<BlueButton
backgroundColor="#FFFFFF"
icon={{
name: 'info',
type: 'entypo',
@ -239,6 +238,7 @@ export default class LNDViewInvoice extends Component {
}}
onPress={() => this.props.navigation.navigate('LNDViewAdditionalInvoiceInformation', { fromWallet: this.state.fromWallet })}
title="Additional Information"
style={{ backgroundColor: '#FFFFFF' }}
/>
)}
</View>

Loading…
Cancel
Save