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
43d23543
Commit
43d23543
authored
Oct 17, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送消息是否包含自己逻辑调整
parent
2e7f2be7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
+1
-8
No files found.
core/src/main/java/com/wecloud/im/service/impl/ImMessageServiceImpl.java
View file @
43d23543
...
...
@@ -935,11 +935,7 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
ConversationExtParam
conversationExt
,
Map
<
Long
,
ImConversation
>
conversationMapGroupById
,
Map
<
Long
,
List
<
ImConversationMembers
>>
conMembersMapGroupByConId
,
Boolean
includeSender
)
{
if
(!
includeSender
)
{
// 排除发件人自己
toUserIdList
=
toUserIdList
.
stream
().
filter
(
userId
->
!
sender
.
getClientId
().
equals
(
userId
)).
collect
(
Collectors
.
toList
());
}
toUserIdList
=
toUserIdList
.
stream
().
filter
(
userId
->
!
sender
.
getClientId
().
equals
(
userId
)).
collect
(
Collectors
.
toList
());
Long
appId
=
application
.
getId
();
// 获取收件人信息
...
...
@@ -955,9 +951,6 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
Set
<
Long
>
receiverImClientIds
=
receiverList
.
stream
().
map
(
ImClient:
:
getId
).
collect
(
Collectors
.
toSet
());
List
<
ImConversation
>
conversationList
=
imConversationService
.
getConversationBySenderAndReceivers
(
senderImClientId
,
receiverImClientIds
);
log
.
info
(
"单人消息获取会话入参 {} {} 会话数量 {}"
,
senderImClientId
,
JSON
.
toJSONString
(
receiverImClientIds
),
conversationList
.
size
());
// 根据收件人imClientId对会话/会话成员进行分组
Set
<
Long
>
notExistConversationReceiverClientIds
=
new
HashSet
<>(
receiverImClientIds
);
...
...
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