我有一个接口到了那一行直接啥也没反应了,报错也没有,电脑上倒是好好的
initConversationList: async function () {
console.log("STACK SIZE initConversationList", this.computeMaxCallStackSize());
let client = await this.getIMClient();
let userInfo = this.getUserInfoSync();
console.log(userInfo);
client.getQuery().withLastMessagesRefreshed(true)
.find()
.then((conversations) => {
console.log("wjl=setting conversationList", conversations);
this.globalData.conversationList = conversations;
}).catch((err) => {
console.error(err.message);
});
}
userInfo可以打印出来,后面就完全没有任何反应了
getIMClient: async function () {
if (!this.globalData.IMclient) {
let userInfo = this.getUserInfoSync();
this.globalData.IMclient = await realtime.createIMClient(userInfo._id);
}
return this.globalData.IMclient;
},
IMclient应该也是可以正常获取的,安卓手机上不行,ios还没有测试