更新 Group Display (#232)
This commit is contained in:
parent
a72c165c59
commit
0c57ab1ed5
@ -160,11 +160,7 @@ type Group struct{ *User }
|
|||||||
|
|
||||||
// implement fmt.Stringer
|
// implement fmt.Stringer
|
||||||
func (g *Group) String() string {
|
func (g *Group) String() string {
|
||||||
display := g.NickName
|
return fmt.Sprintf("<Group:%s>", g.NickName)
|
||||||
if g.RemarkName != "" {
|
|
||||||
display = g.RemarkName
|
|
||||||
}
|
|
||||||
return fmt.Sprintf("<Group:%s>", display)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SendText 发行文本消息给当前的群组
|
// SendText 发行文本消息给当前的群组
|
||||||
|
Loading…
x
Reference in New Issue
Block a user