fix(multiplayer): channel is not set as mp channel

This commit is contained in:
MingxuanGame
2025-12-27 19:30:09 +08:00
committed by GitHub
parent e5a4a0d9e4
commit a58b4cb172

View File

@@ -61,6 +61,9 @@ async def _ensure_room_chat_channel(
await db.refresh(room)
if room.channel_id is None:
room.channel_id = ch.channel_id
await db.commit()
await db.refresh(ch)
await db.refresh(room)
else:
room.channel_id = ch.channel_id