fix(mobile): 通讯录进会话空对方 + 登录后会话列表空态(B-52 无法发送消息根因)
- contacts_screen 用 f.friendUserID(SDK 恒为空)打开会话,导致建出 si__<空对方> 会话,所有消息发给空 userID 全部失败;改用 f.userID - login 后补一次 refreshConversations:SDK 登录期间同步回调先于 loggedIn=true 触发,refreshConversations 因登录态守卫提前返回, 会话列表永久停在空态 双机实测:修复前 sendMessage userID='' 失败;修复后 A→B 消息 正常送达(B 端 onRecvNewMessage 收到 fixverify999) Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -253,6 +253,9 @@ class IMService extends ChangeNotifier {
|
||||
selfInfo = user;
|
||||
loggedIn = true;
|
||||
notifyListeners();
|
||||
// SDK 登录期间会话同步回调可能先于 loggedIn=true 触发,refreshConversations
|
||||
// 会因登录态守卫而提前返回,导致会话列表停在空态。登录完成后主动补一次刷新。
|
||||
await refreshConversations();
|
||||
}
|
||||
|
||||
/// 刷新自己的资料(我的页面展示用)
|
||||
|
||||
Reference in New Issue
Block a user