From 3cd6cd81a01a4b3fd27afcbbc8349aba740762c0 Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Sat, 23 Aug 2025 15:24:29 +0000 Subject: [PATCH] fix(notification): missing greenlet when message is bot command --- app/router/notification/message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/router/notification/message.py b/app/router/notification/message.py index 10fb6a3..00354e1 100644 --- a/app/router/notification/message.py +++ b/app/router/notification/message.py @@ -109,6 +109,7 @@ async def send_message( if is_bot_command: await bot.try_handle(current_user, db_channel, req.message, session) + await session.refresh(current_user) # 为通知系统创建临时 ChatMessage 对象(仅适用于私聊和团队频道) if channel_type in [ChannelType.PM, ChannelType.TEAM]: temp_msg = ChatMessage(