openimsdk / open-im-sdk-reactnative Goto Github PK
View Code? Open in Web Editor NEWIM ReactNative
License: MIT License
IM ReactNative
License: MIT License
没有声明文件 ,openIMSDK 声明的any ,可以加一下
On events
and method getAdvancedHistoryMessageList
return message send time and conversation messageLatestSendTime is always empty
converstion latestMessageSendTime is number
message sendTime is number
OpenIMEmitter.addListener(CbEvents.OnConversationChanged, conversationChangeHandler);
OpenIMEmitter.addListener(CbEvents.OnRecvNewMessage, newMessageHandler);
OpenIMEmitter.addListener(CbEvents.OnRecvNewMessages, newMessageHandler);
const newMessageHandler = (data) => {
console.log("newMessageHandler", typeof data, data)
};
newMessageHandler object [{"attachedInfo": "{\"groupHasReadInfo\":{\"hasReadCount\":0,\"groupMemberCount\":4},\"isPrivateChat\":false,\"burnDuration\":0,\"hasReadTime\":0,\"isEncryption\":false,\"inEncryptStatus\":false}", "attachedInfoElem": {"burnDuration": 0, "groupHasReadInfo": [Object], "hasReadTime": 0, "inEncryptStatus": false, "isEncryption": false, "isPrivateChat": false}, "clientMsgID": "00387be8f8a777fad977354f96e28f45", "contentType": 101, "createTime": null, "groupID": "441", "isRead": false, "msgFrom": 100, "sendID": "433", "sendTime": null, "senderNickname": "admin", "senderPlatformID": 5, "seq": 120, "serverMsgID": "614f6f2fe7801d2077aa0faf8eabe321", "sessionType": 3, "status": 2, "textElem": {"content": "dsvsd"}}]
const conversationChangeHandler = (data) => {
console.log("conversationChangeHandler", typeof data, data)
};
conversationChnageHandler object [{"attachedInfo": "", "burnDuration": 0, "conversationID": "sg_441", "conversationType": 3, "draftText": "", "draftTextTime": 0, "ex": "", "faceURL": "", "groupAtType": 0, "groupID": "441", "hasReadSeq": 0, "isMsgDestruct": false, "isNotInGroup": false, "isPinned": false, "isPrivateChat": false, "latestMsg": "{\"clientMsgID\":\"3316167a808151cc5c3b53589311449b\",\"serverMsgID\":\"a534d4255bf79c4a43603b0c56da0a29\",\"createTime\":1711925246158,\"sendTime\":1711925246321,\"sessionType\":3,\"sendID\":\"433\",\"msgFrom\":100,\"contentType\":101,\"senderPlatformID\":5,\"senderNickname\":\"admin\",\"groupID\":\"441\",\"seq\":118,\"isRead\":false,\"status\":2,\"attachedInfo\":\"{\\\"groupHasReadInfo\\\":{\\\"hasReadCount\\\":0,\\\"groupMemberCount\\\":4},\\\"isPrivateChat\\\":false,\\\"burnDuration\\\":0,\\\"hasReadTime\\\":0,\\\"isEncryption\\\":false,\\\"inEncryptStatus\\\":false}\",\"textElem\":{\"content\":\"sdfsd\"},\"attachedInfoElem\":{\"groupHasReadInfo\":{\"hasReadCount\":0,\"groupMemberCount\":4},\"isPrivateChat\":false,\"burnDuration\":0,\"hasReadTime\":0,\"isEncryption\":false,\"inEncryptStatus\":false}}", "latestMsgSendTime": null, "maxSeq": 0, "minSeq": 0, "msgDestructTime": 0, "recvMsgOpt": 0, "showName": "ПАО СБЕРБАНК", "unreadCount": 2, "updateUnreadCountTime": 0, "userID": ""}]
const getHistoryMessageListByReq = async () => {
const conversationID = useConversationStore.getState().currentConversation?.conversationID;
const data = await OpenIMSDKRN.getAdvancedHistoryMessageList({
userID: "",
groupID: "",
count: 15,
lastMinSeq: 0,
startClientMsgID: "",
conversationID,
}, Date.now().toString());
console.log("getHistoryMessageListByReq", typeof data, data)
}
getHistoryMessageListByReq()
getAdvancedHistoryMessageList object {"errCode": 0, "errMsg": "", "isEnd": false, "lastMinSeq": 13, "messageList": [{"attachedInfoElem": [Object], "clientMsgID": "099e34c07d4d516656c2922d537714f2", "contentType": 101, "createTime": null, "groupID": "431", "isRead": false, "msgFrom": 100, "recvID": "493", "sendID": "493", "sendTime": null, "senderNickname": "client", "senderPlatformID": 2, "seq": 13, "serverMsgID": "5f843ed4eb4aae503591b666d16d0a7f", "sessionType": 3, "status": 2, "textElem": [Object]}]
I'm using the version 3.5.1-rc.0 because the version 3.4.3 doesn't raise event onConversationChanged
On the Browser sdk sendTime is always returned
maven无法下载
maven无法下载
maven无法下载
No response
如题,直接run是通不过的,需要改下 app 的 build.gradle
maven {
allowInsecureProtocol = true
url 'http://121.37.25.71:8081/repository/maven-releases'
}
明显错误的写法
NSString *msg = Open_im_sdkCreateVideoMessageFromFullPath(opid,path, type, (int64_t)duration, snapshotPath); resolver(msg);
应该是
NSString *msg = Open_im_sdkCreateVideoMessageFromFullPath(opid,path, type, [duration longLongValue], snapshotPath); resolver(msg);
我在 npmjs 网站看到目前 OpenIM React Native 的版本是 3.4.2
,但是目前项目储存库中的 package.json 版本是 3.4.0
,Tag 和 Release 只有一个不存在的版本 1.0.7
,请问是否会更新一下提交、Tag 和 Release?
No response
在未调用login的情况下,直接调用 getLoginStatus 会出现app崩溃。建议修复此问题。
upgrade to 3.5
No response
nSelfInfoUpdated
nSelfxxx
少了o
react native 版本还支持更新吗?
如题,例如 getFriendList 接口,和 getConversationsList 接口,都会返回,我估摸着所有的接口都有这个问题,没有去实验
None
supplement the complete method
supplement the complete method
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.