Tags: linxiaozhi/openim-sdk-core
Tags
refactor: friend and conversation update. (openimsdk#708) * fix: remove the conversation trigger to prevent waiting in a circular queue. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove files to pkg. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * optimizing the code * refactor: restruct friend module to relation. * refactor: conversation structure and code change. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * optimizing the code * optimizing the code * optimizing the code * new call * feat: new api call * db success log * new api invoke * fix: Bug fix for clearing unread messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: user package * refactor: full package * refactor: del license * test: fix statistics * refactor: user package * remove unused code * remove unused code * feat: api format * feat: api format * refactor: merge opensource code main into local branch. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: merge opensource code main into local branch. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: merge opensource code main into local branch. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: api format * refactor: user * refactor: full module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: update setGroupInfo API to correct. * refactor: rename api function and add ExtractField function comment * refactor: update logging initialization to use constant from protocol package - Renamed the `log.InitLoggerFromConfig` function call in `init_login.go` to use the `pbConstant.PlatformID2Name` constant from the `protocol` package instead of the `constant.PlatformID2Name` constant from the `openim-sdk-core` package. This ensures consistency and avoids potential conflicts. feat: improve error handling in HTTP client - Updated the `get` and `postLogic` functions in `http_client.go` to use the `io.ReadAll` function instead of `ioutil.ReadAll` for reading the response body. This change improves error handling and ensures proper resource cleanup. refactor: remove unused import in new_http.go - Removed the unused import of `github.com/openimsdk/tools/errs` in `new_http.go` to clean up the code and improve maintainability. * refactor: full * refactor: update logging initialization to use constant from protocol package * feat: format code * Refactor: Update function name in conversation_msg package Rename the function `revokeMessageFromSvr` to `revokeMessageFromServer` in the `revoke.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in group package Rename the function `getGroupsInfoFromSvr` to `getGroupsInfoFromServer` in the `group.go` file of the `group` package. This change aligns with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `getConversationsByIDsFromSvr` to `getConversationsByIDsFromServer` in the `sync.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in group package Rename the function `getGroupsInfoFromSvr` to `getGroupsInfoFromServer` in the `api.go` file of the `group` package. This change aligns with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `clearConversationFromLocalAndSvr` to `clearConversationFromLocalAndServer` in the `delete.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `deleteAllMsgFromLocalAndSvr` to `deleteAllMsgFromLocalAndServer` in the `delete.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `deleteMessagesFromSvr` to `deleteMessagesFromServer` in the `delete.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `getIncrementalConversationFromSvr` to `getIncrementalConversationFromServer` in the `incremental_sync.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `getAllConversationListFromSvr` to `getAllConversationListFromServer` in the `incremental_sync.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `getAllConversationIDsFromSvr` to `getAllConversationIDsFromServer` in the `incremental_sync.go` file of the `conversation_msg` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `syncMsgFromSvr` to `syncMsgFromServer` in the `msg_sync.go` file of the `interaction` package. This change ensures consistency with the naming convention used in the codebase. Refactor: Update function name in conversation_msg package Rename the function `syncMsgFromSvrSplit` to `syncMsgFromServerSplit` in the `msg_sync.go` file of the `interaction` package. This change ensures consistency with the naming convention used in the codebase. * Refactor function names in conversation_msg package * Refactor import paths in conversation_msg and indexdb packages * refactor: user * Refactor variable names and comments for clarity * refactor: full module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: full module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * Refactor import statements in api.go * feat: format code * feat: format code * feat: format code * Refactor database initialization and remove unused modules * remove unused import pkg. * feat: format code * Refactor conversation_msg package and remove unused imports * refactor: full module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * Refactor file imports in conversation_msg package * Refactor file imports in conversation_msg package * Refactor file imports in event_listener package * Refactor file imports in conversation_msg package * refactor: cache * refactor: cache * refactor: cache * feat: add UpdateFriends interface in wasm. * move test to db folder. * replece olderst const. * refactor: del SetGlobalRecvMessageOpt * refactor: move user * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * remove main test. * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: http module remove. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove chinese * refactor: remove chinese * Refactor group API to use simplified SetGroupInfo method * refactor: constant add. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: constant add. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: fix msgtest route * refactor: friend info update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: GetFriendListPage * fix: update router path in setGroupInfoEX. * refactor: friend info update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: audio/mp4 update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: Monet Lee <monet_lee@163.com> Co-authored-by: withchao <993506633@qq.com> Co-authored-by: icey-yu <1186114839@qq.com> Co-authored-by: icey-yu <119291641+icey-yu@users.noreply.github.com>
Refactor: Remove unused GetUsersInfoWithCache function (openimsdk#707) * refactor: fix error handling in SendMessage function * Refactor: Remove unused GetUsersInfoWithCache function * remove unused markfile contents.
refactor: fix error handling in SendMessage function (openimsdk#704)
fix: ws read max seq error. (openimsdk#701) * refactor: mv GetConversationsHasReadAndMaxSeq from HTTP to Websocket. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: ws read max seq error. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
refactor: mv GetConversationsHasReadAndMaxSeq from HTTP to Websocket. (… …openimsdk#700) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
fix: cmd panic and remove struct. (openimsdk#695) * fix: Bug fix for clearing unread messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: Bug fix for pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages and reduce redundant data synchronization. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: cmd panic and remove struct. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
refactor: performance optimization of pull messages and reduce redund… …ant data synchronization. (openimsdk#694) * fix: Bug fix for clearing unread messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: Bug fix for pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages and reduce redundant data synchronization. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
refactor: performance optimization of pull messages. (openimsdk#690) * fix: Bug fix for clearing unread messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: Bug fix for pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
refactor: performance optimization of pull messages. (openimsdk#689) * fix: Bug fix for clearing unread messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: Bug fix for pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: performance optimization of pull messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
feat: implement batchNewMessages method. (openimsdk#687) * feat: implement batchNewMessages method. * update batchnewMessages logic. * update logic. * update