From 56fce9e433a78547e2d92ebef92cab62eaa1c1a7 Mon Sep 17 00:00:00 2001 From: delthas Date: Mon, 15 Nov 2021 17:01:12 +0100 Subject: Fix part-ing a channel with duplicate name in other networks If there are multiple channels with the same name in several networks, we should part from the one from the correct network. --- ui/ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/ui.go') diff --git a/ui/ui.go b/ui/ui.go index ec1fd09..97f7148 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -181,8 +181,8 @@ func (ui *UI) AddBuffer(netID, netName, title string) (i int, added bool) { return ui.bs.Add(netID, netName, title) } -func (ui *UI) RemoveBuffer(title string) { - _ = ui.bs.Remove(title) +func (ui *UI) RemoveBuffer(netID, title string) { + _ = ui.bs.Remove(netID, title) ui.memberOffset = 0 } -- cgit v1.2.3