fix: preserve legacy channel parent names

This commit is contained in:
Yvan
2026-11-06 22:04:42 +08:00
parent 9fccd804a3
commit 870c83efea
3 changed files with 10 additions and 9 deletions
-6
View File
@@ -61,12 +61,6 @@ func (c *Channel) BusinessDisplayName() string {
}
func (c *Channel) ParentDisplayName() string {
if c.Level != nil && *c.Level == 1 {
if len(c.BusinessPath) > 0 {
return c.BusinessPath[len(c.BusinessPath)-1]
}
return c.BusinessDisplayName()
}
return c.ParentName
}