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
4b5a7368
Commit
4b5a7368
authored
Apr 29, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方法调整
parent
452b16ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
+7
-9
No files found.
core/src/main/java/com/wecloud/im/service/impl/ImConversationServiceImpl.java
View file @
4b5a7368
...
...
@@ -277,8 +277,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
imMessageService
.
save
(
imMessage
);
// 发送消息
sendEventMsgToMember
(
imConversation
.
getId
(),
imApplication
.
getId
(),
createClient
.
getClientId
(),
client2
.
getId
(),
imMessage
.
getId
(),
imMessage
.
getMsgType
(),
content
,
Boolean
.
FALSE
,
Boolean
.
TRUE
);
client2
.
getId
(),
content
,
imMessage
);
}
}
ImConversationCreateVo
imConversationCreateVo
=
new
ImConversationCreateVo
();
...
...
@@ -376,12 +375,10 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for
(
ImConversationMembers
conversationMember
:
membersList
)
{
sendEventMsgToMember
(
imClientToConversation
.
getConversationId
(),
imApplication
.
getId
(),
createClient
.
getClientId
(),
conversationMember
.
getFkClientId
(),
imMessage
.
getId
(),
imMessage
.
getMsgType
(),
content
,
Boolean
.
FALSE
,
Boolean
.
TRUE
);
conversationMember
.
getFkClientId
(),
content
,
imMessage
);
}
sendEventMsgToMember
(
imClientToConversation
.
getConversationId
(),
imApplication
.
getId
(),
createClient
.
getClientId
(),
clientToConversation
.
getId
(),
imMessage
.
getId
(),
imMessage
.
getMsgType
(),
content
,
Boolean
.
FALSE
,
Boolean
.
TRUE
);
clientToConversation
.
getId
(),
content
,
imMessage
);
}
// 将群成员数量减
...
...
@@ -1217,8 +1214,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for
(
String
key
:
chatRoomMembers
.
keySet
())
{
Long
fkClientId
=
Long
.
valueOf
(
key
.
split
(
RedisUtils
.
SPLIT
)[
0
]);
sendEventMsgToMember
(
param
.
getChatRoomId
(),
imApplication
.
getId
(),
imClientSender
.
getClientId
(),
fkClientId
content
,
imMessage
);
sendEventMsgToMember
(
param
.
getChatRoomId
(),
imApplication
.
getId
(),
imClientSender
.
getClientId
(),
fkClientId
,
content
,
imMessage
);
}
imConversationMapper
.
addMemberCount
(
imApplication
.
getId
(),
param
.
getChatRoomId
(),
1
);
...
...
@@ -1274,7 +1271,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for
(
String
key
:
chatRoomMembers
.
keySet
())
{
Long
fkClientId
=
Long
.
valueOf
(
key
.
split
(
RedisUtils
.
SPLIT
)[
0
]);
sendEventMsgToMember
(
imApplication
,
fkClientId
,
imMessage
,
currentClient
);
sendEventMsgToMember
(
param
.
getChatRoomId
(),
imApplication
.
getId
(),
currentClient
.
getClientId
(),
fkClientId
,
null
,
imMessage
);
}
return
true
;
}
...
...
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