Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 存在只有一个联系人的群 #203

Open
jianzhou520 opened this issue May 11, 2017 · 1 comment
Open

[BUG] 存在只有一个联系人的群 #203

jianzhou520 opened this issue May 11, 2017 · 1 comment

Comments

@jianzhou520
Copy link
Contributor

contact.js中的getDisplayName方法,获取群名称显示,有的群只有一个联系人(可以尝试自己拉一个群然后把其他人都删了),因此

if (isRoomContact(contact)) {
   return '[群] ' + (contact.RemarkName || contact.DisplayName || contact.NickName ||
     `${getDisplayName(contact.MemberList[0])}${getDisplayName(contact.MemberList[1])}`)
}

是会出问题的

@spacelan
Copy link
Member

还真是有这种情况。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants