Commit b222d1e3 by ethanlamzs

关于im登陆强制刷新都能加入到推送到分组上

1 parent decaf318
...@@ -467,9 +467,9 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver { ...@@ -467,9 +467,9 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
// 注册推送服务 // 注册推送服务
imService.registerPush(); imService.registerPush();
// 处理加群和退群 // 处理加群和退群
if (state.loginOpFlag) { //if (state.loginOpFlag) {
imService.joinAndLeaveGroup(state.userCode!); imService.joinAndLeaveGroup(state.userCode!);
} //}
} else { } else {
debugPrint("缓存自动登录处,IM 登录失败"); debugPrint("缓存自动登录处,IM 登录失败");
} }
......
...@@ -345,9 +345,10 @@ class ImService { ...@@ -345,9 +345,10 @@ class ImService {
// 需要加群 // 需要加群
for (var classId in classIdList) { for (var classId in classIdList) {
if (!joinedGroupIdList.contains(classId)) { // 改变策略,强制加入
//if (!joinedGroupIdList.contains(classId)) {
unjoinedGroupIdList.add(classId); unjoinedGroupIdList.add(classId);
} // }
} }
// 需要退群 // 需要退群
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!