Reset mission control only on no routes found failure

This commit is contained in:
Reckless_Satoshi 2022-06-06 11:00:50 -07:00
parent 7c050b560a
commit 1905d147bf
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 5 additions and 3 deletions

View File

@ -132,8 +132,10 @@ def follow_send_payment(hash):
}
print(context)
# If failed, reset mission control. (This won't scale well, just a temporary fix)
LNNode.resetmc()
# If failed due to not route, reset mission control. (This won't scale well, just a temporary fix)
if response.failure_reason==2:
LNNode.resetmc()
return False, context
if response.status == 2: # Status 2 'SUCCEEDED'

View File

@ -241,7 +241,7 @@ class Chat extends Component {
</Tooltip>
}
subheader={this.state.showPGP[props.index] ? <a> {props.message.time} <br/> {"Valid signature: " + props.message.validSignature} <br/> {props.message.encryptedMessage} </a> : props.message.plainTextMessage}
subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '215px', color: '#444444', fontSize: this.state.showPGP[props.index]? 11 : null }}}
subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '200px', color: '#444444', fontSize: this.state.showPGP[props.index]? 11 : null }}}
/>
</Card>
)