fix(llc): use local ownCapabilities for channel.updated events

This commit is contained in:
Salvatore Giordano
2022-01-25 15:36:19 +01:00
parent 88dbc09df6
commit 77d105616d
@@ -1569,7 +1569,9 @@ class ChannelClientState {
_subscriptions.add(_channel.on(EventType.channelUpdated).listen((Event e) {
final channel = e.channel!;
updateChannelState(channelState.copyWith(
channel: channel,
channel: channel.copyWith(
ownCapabilities: channelState.channel?.ownCapabilities,
),
members: channel.members,
));
}));