Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: friend and conversation update. (#708)
* fix: remove the conversation trigger to prevent waiting in a circular queue. Signed-off-by: Gordon <[email protected]> * refactor: remove files to pkg. Signed-off-by: Gordon <[email protected]> * optimizing the code * refactor: restruct friend module to relation. * refactor: conversation structure and code change. Signed-off-by: Gordon <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * refactor: merge opensource code main into local branch. Signed-off-by: Gordon <[email protected]> * refactor: merge opensource code main into local branch. Signed-off-by: Gordon <[email protected]> * feat: api format * refactor: user * refactor: full module remove. Signed-off-by: Gordon <[email protected]> * 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 <[email protected]> * refactor: full module remove. Signed-off-by: Gordon <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * remove main test. * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: http module remove. Signed-off-by: Gordon <[email protected]> * refactor: remove chinese * refactor: remove chinese * Refactor group API to use simplified SetGroupInfo method * refactor: constant add. Signed-off-by: Gordon <[email protected]> * refactor: constant add. Signed-off-by: Gordon <[email protected]> * refactor: fix msgtest route * refactor: friend info update. Signed-off-by: Gordon <[email protected]> * feat: GetFriendListPage * fix: update router path in setGroupInfoEX. * refactor: friend info update. Signed-off-by: Gordon <[email protected]> * refactor: audio/mp4 update. Signed-off-by: Gordon <[email protected]> --------- Signed-off-by: Gordon <[email protected]> Co-authored-by: Monet Lee <[email protected]> Co-authored-by: withchao <[email protected]> Co-authored-by: icey-yu <[email protected]> Co-authored-by: icey-yu <[email protected]>
- Loading branch information