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())