Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
0527b47c
Commit
0527b47c
authored
Mar 11, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送消息收件箱逻辑修改
parent
538abb7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
+4
-4
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+0
-1
No files found.
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
View file @
0527b47c
...
...
@@ -139,10 +139,6 @@ public class NormalChatAction {
// 再给所有人发 todo 需要改成批量
for
(
ImConversationMembers
conversationMembers
:
membersList
)
{
// 入库 保存收件箱
long
imInboxId
=
SnowflakeUtil
.
getId
();
saveImInbox
(
imApplication
,
data
.
getToConversation
(),
imMessageOnlineSend
.
getMsgId
(),
conversationMembers
,
imInboxId
);
// 查询接收方
ImClient
imClientReceiver
=
imClientService
.
getOne
(
new
QueryWrapper
<
ImClient
>().
lambda
()
.
eq
(
ImClient:
:
getFkAppid
,
imApplication
.
getId
())
...
...
@@ -154,6 +150,10 @@ public class NormalChatAction {
// 不给自己发
continue
;
}
// 入库 保存收件箱
saveImInbox
(
imApplication
,
data
.
getToConversation
(),
imMessageOnlineSend
.
getMsgId
(),
conversationMembers
,
SnowflakeUtil
.
getId
());
// 在线用户直接发消息
sendMsgForOnline
(
imClientReceiver
.
getId
(),
imMessageOnlineSend
);
...
...
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
0527b47c
...
...
@@ -1094,7 +1094,6 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
public
List
<
ConversationVo
>
getMyImConversationListAndMsgCount
()
{
try
{
ImClient
currentClient
=
imClientService
.
getCurrentClient
();
// 查询用户加入的所有会话 与每个会话的未读条数 成员
List
<
ConversationVo
>
myImConversationListAndMsgCount
=
imConversationMapper
.
getMyImConversationListAndMsgCount
(
currentClient
.
getId
(),
null
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment