refactor: Update according to Chapter 2.1.3.2 of RFC 116

This commit is contained in:
莘权 马 2023-11-08 22:06:46 +08:00
parent f47977daa8
commit 9cdbc0a0ae

View file

@ -208,15 +208,9 @@ class Role:
instruct_content=response.instruct_content,
role=self.profile,
cause_by=get_object_name(self._rc.todo),
msg_from=get_object_name(self),
)
else:
msg = Message(
content=response,
role=self.profile,
cause_by=get_object_name(self._rc.todo),
msg_from=get_object_name(self),
)
msg = Message(content=response, role=self.profile, cause_by=get_object_name(self._rc.todo))
return msg