openimsdk / open-im-sdk-ios

An OpenIM SDK in Objective-C for iOS
https://openim.io
MIT License
151 stars 140 forks source link

Bug: getUsersInfoWithCache No "ex" field returned #37

Closed printlin closed 4 months ago

printlin commented 5 months ago

What happened?

The getUsersInfoWithCache function did not return the 'ex' field, although the documentation describes that it should return 'publicInfo.' Similarly, testing with the Android SDK confirmed that the 'ex' field is returned.

What did you expect to happen?

return the 'ex' field

How can we reproduce it (as minimally and precisely as possible)?

use getUsersInfoWithCache 100% reproduce it

Anything else we need to know?

No response

version

OpenIMSDK 3.5.1-alpha.2 or OpenIMSDK 3.4.0

Cloud provider

local

OS version

No response

Install tools

No response

printlin commented 5 months ago

I found the reason. The 'EX' field is not defined in OIMPublicUserInfo in OpenIMSDK/Model/OIMFullUserInfo.h. Once I defined it, I was able to successfully retrieve it.

std-s commented 5 months ago

I found the reason. The 'EX' field is not defined in OIMPublicUserInfo in OpenIMSDK/Model/OIMFullUserInfo.h. Once I defined it, I was able to successfully retrieve it.

Thanks for finding it, will update later.