IMClient 没有自动更新 userSig 的过期时间
vioao opened this issue · 2 comments
vioao commented
这里获取 client instance 后, 从 cache 中获取的 client 的话,是不会更新 userSig 的过期时间的.
public static IMClient getInstance(Long sdkAppId, String userId, String key) {
String identify = sdkAppId + "_" + userId;
if (IM_CLIENT.get(identify) == null) {
IM_CLIENT.putIfAbsent(identify, new IMClient(sdkAppId, userId, key, 24 * 60 * 60L));
}
return IM_CLIENT.get(identify);
}