From e00f3d291eb645ad62f63745eabc5c0bbfd6426c Mon Sep 17 00:00:00 2001 From: Jolie <412895109@qq.com> Date: Sat, 29 Nov 2025 21:57:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(live):=20=E5=A4=84=E7=90=86=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E7=9B=B4=E6=92=AD=E6=B6=88=E6=81=AF=E6=97=B6=E9=80=80?= =?UTF-8?q?=E5=87=BA=E9=A2=91=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在处理结束直播消息时调用leaveChannel方法 - 确保用户在直播结束时正确离开频道 - 添加对RoomController的依赖查找和异步等待 --- lib/service/live_chat_message_service.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/service/live_chat_message_service.dart b/lib/service/live_chat_message_service.dart index 6946158..4dedf1f 100644 --- a/lib/service/live_chat_message_service.dart +++ b/lib/service/live_chat_message_service.dart @@ -69,6 +69,8 @@ class LiveChatMessageService { // 处理结束直播消息 if (messageData['type'] == 'end_live') { + RoomController controller = Get.find(); + await controller.leaveChannel(); _handleEndLiveMessage(); return; }