fix(notification): missing greenlet when message is bot command

This commit is contained in:
MingxuanGame
2025-08-23 15:24:29 +00:00
parent 373a2a31f6
commit 3cd6cd81a0

View File

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