💄 Optimize notification displaying

This commit is contained in:
LittleSheep 2025-02-23 18:43:06 +08:00
parent 6d0caa1cde
commit c1d0b2f650

View File

@ -2,6 +2,7 @@ package models
import ( import (
"fmt" "fmt"
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda" "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models"
) )
@ -36,9 +37,9 @@ func (v Channel) DisplayText() string {
return "DM" return "DM"
} }
if v.Realm != nil { if v.Realm != nil {
return fmt.Sprintf("%s, %s", v.Alias, v.Realm.Alias) return fmt.Sprintf("%s, %s", v.Name, v.Realm.Alias)
} }
return fmt.Sprintf("%s", v.Alias) return fmt.Sprintf("%s", v.Name)
} }
type NotifyLevel = int8 type NotifyLevel = int8