💄 Optimize notification displaying
This commit is contained in:
parent
6d0caa1cde
commit
c1d0b2f650
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user