Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContactListTab 订阅好友信息更新没有收到通知 #50

Open
captain-miao opened this issue Nov 21, 2024 · 2 comments
Open

ContactListTab 订阅好友信息更新没有收到通知 #50

captain-miao opened this issue Nov 21, 2024 · 2 comments

Comments

@captain-miao
Copy link
Contributor

captain-miao commented Nov 21, 2024

    aboutToAppear() {
        ...
       ...
        wfc.eventEmitter?.on(EventType.UserInfosUpdate, this.onUserInfosUpdate) // 无回调
        wfc.eventEmitter?.on(EventType.FriendListUpdate, this.onFriendListUpdate) // 无回调
        wfc.eventEmitter?.on(EventType.FriendRequestUpdate, this.onFriendRequestUpdate) // 有回调

        ...
       ...
    }

操作步骤:

  1. 切换到用户通讯录界面
  2. 通讯录中的好友,更新昵称和头像 -> 没有回调
  3. 电脑端更新自己昵称和头像 -> 没有回调
  4. 添加好友 -> 有回调,说明代码逻辑正确的。
@imndx
Copy link
Contributor

imndx commented Nov 27, 2024

用户信息更新通知是“主动”触发的。

获取用户信息时,如果当前本地不存在该用户信息,或传了强制刷新的参数时,会从服务端拉取该用户信息,拉取成功之后,触发用户信息更新通知。

@captain-miao
Copy link
Contributor Author

用户信息更新通知是“主动”触发的。

获取用户信息时,如果当前本地不存在该用户信息,或传了强制刷新的参数时,会从服务端拉取该用户信息,拉取成功之后,触发用户信息更新通知。

Android / iOS 上面的操作场景都会自动更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants