Skip to content

Commit

Permalink
修复群用户昵称获取。 (littlecodersh#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
tempdban authored and littlecodersh committed Oct 18, 2016
1 parent ac7ff2a commit 35656c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itchat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __produce_group_chat(self, msg):
member = tools.search_dict_list((chatroom or {}).get(
'MemberList') or [], 'UserName', actualUserName)
msg['ActualUserName'] = actualUserName
msg['ActualNickName'] = member['NickName']
msg['ActualNickName'] = member['DisplayName'] or member['NickName']
msg['Content'] = content
tools.msg_formatter(msg, 'Content')
msg['isAt'] = u'@%s%s' % (chatroom['self']['DisplayName']
Expand Down

0 comments on commit 35656c6

Please sign in to comment.