Skip to content

Commit

Permalink
Merge pull request zhayujie#1221 from Zhaoyi-Yan/patch-3
Browse files Browse the repository at this point in the history
add \n after @Nickname for group chat
  • Loading branch information
lanvent committed Jun 8, 2023
2 parents d01d1f8 + ff97ae7 commit 65b9542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel/chat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _decorate_reply(self, context: Context, reply: Reply) -> Reply:
reply = super().build_text_to_voice(reply.content)
return self._decorate_reply(context, reply)
if context.get("isgroup", False):
reply_text = "@" + context["msg"].actual_user_nickname + " " + reply_text.strip()
reply_text = "@" + context["msg"].actual_user_nickname + "\n" + reply_text.strip()
reply_text = conf().get("group_chat_reply_prefix", "") + reply_text
else:
reply_text = conf().get("single_chat_reply_prefix", "") + reply_text
Expand Down

0 comments on commit 65b9542

Please sign in to comment.