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
7d2e8465
Commit
7d2e8465
authored
Sep 29, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调试
parent
89ead4c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
+7
-2
No files found.
core/src/main/java/com/wecloud/im/action/NormalChatAction.java
View file @
7d2e8465
...
...
@@ -171,7 +171,7 @@ public class NormalChatAction {
ImMessageOnlineSend
imMessageOnlineSend
=
assembleImMessageOnlineSend
(
data
,
imClientSender
,
imApplication
.
getId
());
// 入库 保存收件箱
batchSaveInbox
(
imApplication
,
conversation
,
imMessageOnlineSend
.
getMsgId
(),
membersList
);
batchSaveInbox
(
imApplication
,
imClientSender
,
conversation
,
imMessageOnlineSend
.
getMsgId
(),
membersList
);
// 入库成功后 判断是否是临时会话 如果是,双方会话display状态是否是1(显示),如果不是,需要修改为是
if
(
ChatTypeEnum
.
TEMP
.
getCode
().
equals
(
conversation
.
getChatType
()))
{
// 木有只有私聊一种临时会话类型
...
...
@@ -301,10 +301,13 @@ public class NormalChatAction {
* @param messageId
* @param membersList
*/
private
void
batchSaveInbox
(
ImApplication
imApplication
,
ImConversationQueryVo
conversation
,
long
messageId
,
private
void
batchSaveInbox
(
ImApplication
imApplication
,
ImC
lient
clientSender
,
ImC
onversationQueryVo
conversation
,
long
messageId
,
List
<
ImConversationMembers
>
membersList
)
{
List
<
ImInbox
>
inboxes
=
Lists
.
newArrayList
();
for
(
ImConversationMembers
member
:
membersList
)
{
if
(
clientSender
.
getClientId
().
equals
(
member
.
getClientId
()))
{
continue
;
}
ImInbox
imInbox
=
new
ImInbox
();
imInbox
.
setId
(
SnowflakeUtil
.
getId
());
imInbox
.
setCreateTime
(
new
Date
());
...
...
@@ -316,8 +319,10 @@ public class NormalChatAction {
imInbox
.
setFkConversationId
(
conversation
.
getId
());
inboxes
.
add
(
imInbox
);
}
if
(
CollectionUtils
.
isNotEmpty
(
inboxes
))
{
imInboxService
.
saveBatch
(
inboxes
);
}
}
/**
* 判断是否被拉黑
...
...
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