Skip to content

Commit

Permalink
feat: member DisplayName
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jul 24, 2024
1 parent e1b14ff commit 9072f30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/entity/groupMember.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ type GroupMember struct {
LastMsgTime uint32
Avatar string
}

func (m *GroupMember) DisplayName() string {
if m.MemberCard != "" {
return m.MemberCard
}
return m.MemberName
}

0 comments on commit 9072f30

Please sign in to comment.