From 0c57ab1ed58485a9ebabfba6ea89c9645cdeea67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E5=90=83=E7=82=B9=E8=8B=B9=E6=9E=9C?= <73388495+eatmoreapple@users.noreply.github.com> Date: Sat, 4 Feb 2023 23:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Group=20Display=20(#232)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relations.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/relations.go b/relations.go index f7296cd..f7be804 100644 --- a/relations.go +++ b/relations.go @@ -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("", display) + return fmt.Sprintf("", g.NickName) } // SendText 发行文本消息给当前的群组