Make message.response keep source/dest info

pull/2478/head
Åke Forslund 2020-02-24 10:37:10 +01:00
parent 1afedb2dd2
commit d30f778026
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ class Message:
Returns
(Message) message with the type modified to match default response
"""
response_message = self.reply(self.msg_type, data or {}, context)
response_message.msg_type += '.response'
response_message = Message(self.msg_type + '.response', data or {},
context or self.context)
return response_message
def publish(self, msg_type, data, context=None):