diff --git a/examples/echo_client.py b/examples/echo_client.py index 2fa5376..7e01c2e 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -215,8 +215,9 @@ async def encrypted_reply( xep_0384: XEP_0384 = self["xep_0384"] if isinstance(reply, str): + reply_body = reply reply = self.make_message(mto=mto, mtype=mtype) - reply["body"] = reply + reply["body"] = reply_body reply.set_to(mto) reply.set_from(self.boundjid)