From f3eb236b286c0ece4b96385a7002cbf2675559e6 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 22 Dec 2023 00:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=20help=20=E6=B7=BB=E5=8A=A0=20reply?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sio_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sio_model.py b/sio_model.py index 86f8f43..eaae7f2 100644 --- a/sio_model.py +++ b/sio_model.py @@ -136,7 +136,8 @@ class SioDecorator: try: await func(sqt) except PrintMessage as e: - msg = Message(content=str(e), room_id=room_id) + reply = ReplyMessage(id=message_id) + msg = Message(content=str(e), room_id=room_id, reply_to=reply) await self.app.ctx.sio.emit('sendMessage', msg.to_json())