更新 Group Display (#232)

This commit is contained in:
多吃点苹果 2023-02-04 23:55:55 +08:00 committed by GitHub
parent a72c165c59
commit 0c57ab1ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,11 +160,7 @@ type Group struct{ *User }
// implement fmt.Stringer
func (g *Group) String() string {
display := g.NickName
if g.RemarkName != "" {
display = g.RemarkName
}
return fmt.Sprintf("<Group:%s>", display)
return fmt.Sprintf("<Group:%s>", g.NickName)
}
// SendText 发行文本消息给当前的群组