Skip to content

Commit 0e98f1e

Browse files
FGadvancerwithchaoicey-yumo3etqmarliu
authored
merge: merge code into v3.8.4 from main. (#917)
* fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: msg test. * fix: add register message. * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add args * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: pressure test add. * fix: test file. * fix: send message concurrent. * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add pressure. * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: restore message. * fix: pressure message. * fix: add timer. * fix: message update. * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix:add range login. * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: single message test. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix:update. * fix: update. * fix: update. * fix:update * fix: update * fix: update * fix: update. * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add wait time. * fix: message * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: update batchMsgListener func. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * chore: config update. * chore:do not send message. * chore:add args. * chore:fix bug. * chore: fix bool. * chore: restore. * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: listener add empty implement avoid panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add sync pool to reduce cpu and memory overhead. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add sync pool to reduce cpu and memory overhead. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add sync pool to reduce cpu and memory overhead. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add sync pool to reduce cpu and memory overhead. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: conversation's latestMsg struct unmarshal err type. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: conversation's latestMsg struct unmarshal err type. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: conversation's latestMsg struct unmarshal err type. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: msg test update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: create group add error info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: create group add error info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: create group add error info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: create group add error info. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: ip change. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: ip change. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * test: ip change. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: group add online rate. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove c wrapper. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add incremental synchronization for common conversation attributes. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add incremental synchronization for common conversation attributes. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add incremental synchronization for common conversation attributes. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add incremental synchronization for common conversation attributes. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add incremental synchronization for common conversation attributes. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove some functions. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove some functions. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: Support FetchSurroundingMessages (#741) * feat: code adjustment * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * fix: SearchLocalMessages no such table * feat: FetchSurroundingMessages * feat: FetchSurroundingMessages * fix: version (#750) * merge: update release-v3.8 with main changes Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: update the latest message when group member's changed. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * Revert "fix: update the latest message when group member's changed." This reverts commit ac358cb. * fix: update the latest message when group member's changed. (#752) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: remove duplicate License. (#747) * feat: mark all conversation as read (#743) * feat: implement default logger when no init. (#755) * fix: del local group request (#754) * build: implement changelog generate. (#748) * fix: improve release generate file. * refactor: improve changelog structure. * update goreleaser * feat: implement changelog generate. * remove README.md use generate. * build: implement create Pre-release PR from Milestone. (#746) * feat: implement create Pre-release PR from Milestone. * update schedule time. * feat: implement error stack print. (#733) * feat: implement error stack print. * feat: update fn call error stack. * update go mod. * fix: improve batchUserFaceURLandName logic. (#756) * refactor: update ServerAPI method name. * feat: improve batchUserFaceURLandName logic. * update logic. * fix: escape table names to avoid the sqlite error: near "-": syntax error". (#762) * Fix local cache: user cache and group member cache (#765) * fix: group member local cache * fix: user local cache * fix: fix temp file don't remove when upload file. (#764) * build: improve cleanup after ms PR merged. * fix: fix temp file don't remove when upload file. * fix: GetGroupMembersInfoFunc (#767) * feat: searchLocalMessages by SenderUserID. (#739) * feat: searchLocalMessages by SenderUserID. * update wasm db interface and fix error. * add searchBykeyword logic. * update wasm para. * update logic. * feat: improve method implement. * update logic. * try empty * update sql query space. * fix: Change check reinstall logic (#766) * fix: check reinstall * fix: check reinstall * feat: support stream message (#770) * feat: code adjustment * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * fix: SearchLocalMessages no such table * feat: support stream messages * feat: support stream messages * fix: deleting the last message in a conversation will prompt failure (#771) * fix: the bug where isEnd for fetching message history is not working correctly. (#773) * fix: the bug where isEnd for fetching message history is not working correctly. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: the bug where isEnd for fetching message history is not working correctly. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: the bug where isEnd for fetching message history is not working correctly. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: the bug where isEnd for fetching message history is not working correctly. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: the bug where isEnd for fetching message history is not working correctly. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: solve uncorrect log. (#777) * refactor: improve createMessage and sendMessage interface. (#734) * add .gitignore content. * refactor: improve createMessage and sendMessage interface. * fix interface args. * fix nil pointer error. * fix test error. * refactor: remove batchListener. (#729) * refactor: remove batchListener. * comment update version file workflows. * restore code. * revert workflow file. * fix: update to correct msgListener. --------- Co-authored-by: OpenIM-Gordon <46924906+FGadvancer@users.noreply.github.com> * Create delete-users-invalid-comments.yml * Update workflows. * fix: solve uncorrect delete file. (#784) * build: remove uncorrect schedule. (#782) * build: add bot PR merged filter. (#788) * Fix:Change check reinstall logic (#789) * fix: err * fix: err * fix: err * fix: err * fix: err * fix: msg status change to success when msg fetch from server. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: create index failed when table name has `-`. (#793) * feat: improve merge in milestone and merged handle logic. (#794) * feat: improve merge in milestone logic. * update cleanup milestone. * build: update PR body. (#796) * feat: improve merge in milestone logic. * update cleanup milestone. * build: fix release args. * build: update PR body. * fix: change errs to custom errs avoid sdk panic. (#801) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: change errs to custom errs avoid sdk panic. (#800) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: get reverse history message change. (#804) * fix: change errs to custom errs avoid sdk panic. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: get reverse history message change. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: the SDK interface using the pb protocol to replace json. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: go mod dep repo update and fix reverse fetch message duplicate. (#810) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add server isEnd determination criteria for message retrieval. (#813) * fix: add server isEnd determination criteria for message retrieval. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add server isEnd determination criteria for message retrieval. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add server isEnd determination criteria for message retrieval. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: login user's info maybe empty when app reinstall. (#814) * fix: login user's info maybe empty when app reinstall. * fix: login user's info maybe empty when app reinstall. * fix: login user's info maybe empty when app reinstall. * fix: add server isEnd determination criteria for message retrieval. (#815) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: search message do not filter voice message when keyword is empty. (#819) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: Add black api add lock (#822) * fix: cicd (#824) * fix: quote message change to revoke message when app from background to foreground and message status update. (#825) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add a function to quickly retrieve the context messages for a given message. (#827) * fix: quote message change to revoke message when app from background to foreground and message status update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add a function to quickly retrieve the context messages for a given message. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: the SDK interface using the pb protocol to replace json. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: add a parameter to locate messages and reverse pull messages to avoid UI data interference. (#832) * fix: quote message change to revoke message when app from background to foreground and message status update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: add a function to quickly retrieve the context messages for a given message. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: the SDK interface using the pb protocol to replace json. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: add a parameter to locate messages and reverse pull messages to avoid UI data interference. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: add a parameter to locate messages and reverse pull messages to avoid UI data interference. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: add a parameter to locate messages and reverse pull messages to avoid UI data interference. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove fetch messages instead of search message clear cache. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove fetch messages instead of search message clear cache. (#834) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: refine exception message handling to prevent duplicate messages in clients with poor network conditions. (#840) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * build: improve workflows contents. (#842) * build: improve workflows contents. * update workflows contents. * update * Update LICENSE * Update LICENSE * Update README.md * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. (#845) * fix: refine exception message handling to prevent duplicate messages in clients with poor network conditions. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: primary key conflicts caused by empty messages occupying seq due to sequence gaps. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: solve uncorrect delete conversation. (#848) * fix: wrong error code sometimes (#847) * fix: wrong error code sometimes * fix: keep error message * optimize the freeze caused by too many friends and group applications (#852) * feat: code adjustment * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * feat: Cmd2Value carry caller * fix: SearchLocalMessages no such table * fix: optimize the freeze caused by too many friends and group applications * fix: add random prefix to remove duplicate messages. (#850) * fix: refine exception message handling to prevent duplicate messages in clients with poor network conditions. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: primary key conflicts caused by empty messages occupying seq due to sequence gaps. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add random prefix to remove duplicate messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: GetConversationIDBySessionType 返回的字符串带转义符 (#844) * style: update context initialization in GetConversationIDBySessionType. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * docs: readme doc update and add doc for gomobile compile sdk core. (#854) * docs: update readme file. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * docs: go mobile readme update. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * build: fix merge failed when conflict. (#855) * build: fix merge failed when conflict. * revert to previous name. * fix: modify the historical message retrieval interface to address the message gap problem caused by server crashes or redis seq cache expired. (#856) * fix: refine exception message handling to prevent duplicate messages in clients with poor network conditions. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: primary key conflicts caused by empty messages occupying seq due to sequence gaps. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: server downtime and abnormal message handling may lead to message duplication, and the history retrieval interface might miss messages when the timestamps are the same. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add random prefix to remove duplicate messages. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: modify the historical message retrieval interface to address the message gap problem caused by server crashes or redis seq cache expired. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * chore: update slack link in repo. (#860) * fix: sync self conversation's avatar when user's info changed. (#870) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add a manually triggered IM message synchronization mechanism to… (#868) * fix: add a manually triggered IM message synchronization mechanism to prevent message recall failure due to seq=0. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add a manually triggered IM message synchronization mechanism to prevent message recall failure due to seq=0. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: directly deduplicate the messages pulled from the server. (#873) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: get group member info maybe failed. (#880) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: change secret && cicd modify secret (#884) * feat: sdk not init and not login code (#888) * refactor: change the login and initialization logic to prevent the SD… (#889) * refactor: change the login and initialization logic to prevent the SDK from crashing due to being uninitialized or not logged in. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: integ test * fix: integ test * fix: integ test * fix: integ test * refactor: change the login and initialization logic to prevent the SDK from crashing due to being uninitialized or not logged in. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: remove some unused functions and struct. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: icey-yu <1186114839@qq.com> * refactor: change the login and initialization logic to prevent the SD… (#889) (#890) * refactor: change the login and initialization logic to prevent the SDK from crashing due to being uninitialized or not logged in. * fix: integ test * fix: integ test * fix: integ test * fix: integ test * refactor: change the login and initialization logic to prevent the SDK from crashing due to being uninitialized or not logged in. * refactor: remove some unused functions and struct. --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: icey-yu <1186114839@qq.com> * fix: add mutex for get conversation prevent concurrent insert conversation. (#893) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * fix: add mutex for get conversation prevent concurrent insert conversation. (#894) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: caching for special users of the SDK to prevent cache breakdown and reduce server pressure. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: caching for special users of the SDK to prevent cache breakdown and reduce server pressure. (#895) Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * feat: support client config * feat: CheckLocalGroupFullSync & CheckGroupMemberFullSync (#900) * feat: CheckLocalGroupFullSync & CheckGroupMemberFullSync (#900) * refactor: revert createMsg interface. (#902) * refactor: improve workflows by merge and release (#912) * update new milestone * refactor: improve workflows contents by milestone PR. * update to args. * update workflows contents. * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. (#916) * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> * refactor: change conversation channel to priority queue and adjust strategy of message sync. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --------- Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: chao <48119764+withchao@users.noreply.github.com> Co-authored-by: icey-yu <119291641+icey-yu@users.noreply.github.com> Co-authored-by: Monet Lee <monet_lee@163.com> Co-authored-by: qmarliu <liu6uu@163.com> Co-authored-by: skiffer-git <72860476+skiffer-git@users.noreply.github.com> Co-authored-by: yoyoIU <yoyo930021@gmail.com> Co-authored-by: 秋叶红 <793983383@qq.com> Co-authored-by: icey-yu <1186114839@qq.com> Co-authored-by: withchao <993506633@qq.com>
1 parent a5d196b commit 0e98f1e

34 files changed

Lines changed: 791 additions & 517 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ contact_links:
44
# description: "Report a bug in the project"
55
# file: "bug-report.yml"
66
- name: 📢 Connect on slack
7-
url: https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg
7+
url: https://join.slack.com/t/openimsdk/shared_invite/zt-2ijy1ys1f-O0aEDCr7ExRZ7mwsHAVg9A
88
about: Support OpenIM-related requests or issues, get in touch with developers and help on slack
99
- name: 🌐 OpenIM Blog
1010
url: https://www.openim.io/

.github/ISSUE_TEMPLATE/other.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ title: "[Other]: <give this problem a name>"
44
labels: ["other"]
55
# assignees: []
66

7-
87
body:
98
- type: markdown
109
attributes:
@@ -26,5 +25,5 @@ body:
2625
- type: markdown
2726
attributes:
2827
value: |
29-
You can also join our Discord community [here](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg)
28+
You can also join our Discord community [here](https://join.slack.com/t/openimsdk/shared_invite/zt-2ijy1ys1f-O0aEDCr7ExRZ7mwsHAVg9A)
3029
Feel free to check out other cool repositories of the openim Community [here](https://github.com/openimsdk)

.github/workflows/auto-invite-comment.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
permissions:
1212
issues: write
1313
steps:
14-
1514
- name: Invite user to join OpenIM Community
1615
uses: peter-evans/create-or-update-comment@v4
1716
with:
@@ -20,11 +19,11 @@ jobs:
2019
body: |
2120
We value close connections with our users, developers, and contributors here at Open-IM-Server. With a large community and maintainer team, we're always here to help and support you. Whether you're looking to join our community or have any questions or suggestions, we welcome you to get in touch with us.
2221
23-
Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q). Even if you're in China, Slack is usually not blocked by firewalls, making it an easy way to connect with us. Our Slack community is the ideal place to discuss and share ideas and suggestions with other users and developers of Open-IM-Server. You can ask technical questions, seek help, or share your experiences with other users of Open-IM-Server.
24-
22+
Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-2ijy1ys1f-O0aEDCr7ExRZ7mwsHAVg9A). Even if you're in China, Slack is usually not blocked by firewalls, making it an easy way to connect with us. Our Slack community is the ideal place to discuss and share ideas and suggestions with other users and developers of Open-IM-Server. You can ask technical questions, seek help, or share your experiences with other users of Open-IM-Server.
23+
2524
In addition to Slack, we also offer the following ways to get in touch:
26-
27-
+ <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q" target="_blank"><img src="https://img.shields.io/badge/Slack-OpenIM%2B-blueviolet?logo=slack&amp;logoColor=white"></a> We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [👀 Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q) team channel.
25+
26+
+ <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-2ijy1ys1f-O0aEDCr7ExRZ7mwsHAVg9A" target="_blank"><img src="https://img.shields.io/badge/Slack-OpenIM%2B-blueviolet?logo=slack&amp;logoColor=white"></a> We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [👀 Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-2ijy1ys1f-O0aEDCr7ExRZ7mwsHAVg9A) team channel.
2827
+ <a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&to=info@openim.io" target="_blank"><img src="https://img.shields.io/badge/gmail-%40OOpenIMSDKCore?style=social&logo=gmail"></a> Get in touch with us on [Gmail](https://mail.google.com/mail/u/0/?fs=1&tf=cm&to=winxu81@gmail.com). If you have any questions or issues that need resolving, or any suggestions and feedback for our open source projects, please feel free to contact us via email.
2928
+ <a href="https://doc.rentsoft.cn/" target="_blank"><img src="https://img.shields.io/badge/%E5%8D%9A%E5%AE%A2-%40OpenIMSDKCore-blue?style=social&logo=Octopus%20Deploy"></a> Read our [blog](https://doc.rentsoft.cn/). Our blog is a great place to stay up-to-date with Open-IM-Server projects and trends. On the blog, we share our latest developments, tech trends, and other interesting information.
3029
+ <a href="https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-OpenIMSDKCore-brightgreen?logo=wechat&style=flat-square"></a> Add [Wechat](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible.
@@ -36,4 +35,4 @@ jobs:
3635
# issue-number: ${{ github.event.issue.number }}
3736
# comment: 🤖 Auto-closing issue, if you still need help please reopen the issue or ask for help in the community above
3837
# labels: |
39-
# accepted
38+
# accepted
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Delete User Comments
2+
3+
permissions:
4+
contents: write
5+
issues: write
6+
pull-requests: write
7+
8+
on:
9+
workflow_dispatch:
10+
inputs:
11+
username:
12+
description: "GitHub username of the user whose comments need to be deleted"
13+
required: true
14+
default: "username_to_delete"
15+
issue_pr_range:
16+
description: "Comma-separated list of issue/PR numbers to limit deletion scope (optional)"
17+
required: false
18+
default: ""
19+
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
TEMP_DIR: /tmp # Temporary directory for storing intermediate data
23+
24+
jobs:
25+
delete_user_comments:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Setup Temporary Directory
29+
run: mkdir -p ${{ env.TEMP_DIR }}
30+
31+
- name: Determine Scope and Fetch Data
32+
run: |
33+
username="${{ github.event.inputs.username }}"
34+
range="${{ github.event.inputs.issue_pr_range }}"
35+
36+
if [ -n "$range" ]; then
37+
echo "Limiting scope to specified range: $range"
38+
echo "$range" | tr ',' '\n' > ${{ env.TEMP_DIR }}/range.txt
39+
else
40+
echo "Fetching all issues and pull requests for repository: ${{ github.repository }}"
41+
42+
# Fetch all issues
43+
issues=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
44+
-H "Accept: application/vnd.github+json" \
45+
"https://api.github.com/repos/${{ github.repository }}/issues?state=all&per_page=100")
46+
47+
# Save issue and PR numbers separately
48+
echo "$issues" | jq -r '.[] | select(.pull_request == null) | .number' > ${{ env.TEMP_DIR }}/issues.txt
49+
echo "$issues" | jq -r '.[] | select(.pull_request != null) | .number' > ${{ env.TEMP_DIR }}/pull_requests.txt
50+
51+
cat ${{ env.TEMP_DIR }}/issues.txt ${{ env.TEMP_DIR }}/pull_requests.txt > ${{ env.TEMP_DIR }}/range.txt
52+
fi
53+
54+
- name: Delete Comments by User
55+
run: |
56+
username="${{ github.event.inputs.username }}"
57+
echo "Deleting comments by user: $username"
58+
59+
for number in $(cat ${{ env.TEMP_DIR }}/range.txt); do
60+
echo "Processing Issue/PR #$number"
61+
62+
# Fetch comments for the issue/PR
63+
comments=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
64+
-H "Accept: application/vnd.github+json" \
65+
"https://api.github.com/repos/${{ github.repository }}/issues/$number/comments")
66+
67+
# Filter and delete user comments
68+
echo "$comments" | jq -c ".[] | select(.user.login == \"$username\")" | while read comment; do
69+
comment_id=$(echo "$comment" | jq -r '.id')
70+
echo "Deleting comment ID: $comment_id from Issue/PR #$number"
71+
72+
response=$(curl -s -X DELETE -H "Authorization: token $GITHUB_TOKEN" \
73+
-H "Accept: application/vnd.github+json" \
74+
"https://api.github.com/repos/${{ github.repository }}/issues/comments/$comment_id")
75+
76+
if [ -z "$response" ]; then
77+
echo "Successfully deleted comment ID: $comment_id"
78+
else
79+
echo "Failed to delete comment ID: $comment_id. Response: $response"
80+
fi
81+
done
82+
done
83+
84+
- name: Completion
85+
run: echo "All comments by user ${{ github.event.inputs.username }} in the specified scope have been deleted."

.github/workflows/update-version-file-on-release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
update-version:
99
runs-on: ubuntu-latest
1010
env:
11-
TAG_VERSION: ${{ github.event.release.tag_name }}
11+
TAG_VERSION: ${{ github.event.release.tag_name }}
1212
steps:
1313
# Step 1: Checkout the original repository's code
1414
- name: Checkout code
@@ -44,15 +44,13 @@ jobs:
4444
git commit -m "Update version to ${{ env.TAG_VERSION }}"
4545
git push origin HEAD:${{ github.ref }}
4646
47-
# Step 6: Create and push tag
48-
- name: Create and push tag
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
# Step 6: Update tag
48+
- name: Update tag
5149
run: |
52-
git tag ${{ env.TAG_VERSION }}
53-
git push origin ${{ env.TAG_VERSION }}
50+
git tag -fa ${{ env.TAG_VERSION }} -m "Update version to ${{ env.TAG_VERSION }}"
51+
git push origin ${{ env.TAG_VERSION }} --force
5452
55-
# Step 8: Find and Publish Draft Release
53+
# Step 7: Find and Publish Draft Release
5654
- name: Find and Publish Draft Release
5755
uses: actions/github-script@v6
5856
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ components
44
logs
55
out-test
66
*.db
7+
open-im-sdk-core.*
78

89
### Backup ###
910
*.bak

0 commit comments

Comments
 (0)