fix LSPS7 custom message sent when no LSP channel exists (#3710)

This commit is contained in:
myxmaster
2026-02-15 12:44:36 -05:00
committed by GitHub
parent f03dae166b
commit d5d69c98b3
+7 -2
View File
@@ -72,9 +72,14 @@ export default class LSPStore {
reaction(
() => this.channelsStore.channels,
() => {
const lspPubkey = this.getLSPSPubkey();
if (
this.channelsStore.channels.length !== 0 &&
BackendUtils.supportsLSPScustomMessage()
BackendUtils.supportsLSPScustomMessage() &&
lspPubkey &&
this.channelsStore.channels.some(
(channel: { remotePubkey: string }) =>
channel.remotePubkey === lspPubkey
)
) {
this.getExtendableChannels();
}