Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
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
abookCommunication
chat_webview
Commits
f1f47181
Commit
f1f47181
authored
Aug 10, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'squash/socket_kim-ec' into 'develop'
Squash/socket kim ec See merge request
!228
parents
ca5452d0
b4c29715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
public_new/js/sockets/chat-websocket-message.js
+11
-7
No files found.
public_new/js/sockets/chat-websocket-message.js
View file @
f1f47181
...
@@ -5,12 +5,12 @@ CHAT_SOCKET.bindOnNewMessage = function () {
...
@@ -5,12 +5,12 @@ CHAT_SOCKET.bindOnNewMessage = function () {
CHAT_SOCKET
.
handleMessage
(
message
,
roomName
,
SOCKET_KEY
.
NEW_MESSAGE
);
CHAT_SOCKET
.
handleMessage
(
message
,
roomName
,
SOCKET_KEY
.
NEW_MESSAGE
);
});
});
socket
.
on
(
SOCKET_KEY
.
NEW_COMMUNICATION
,
function
(
message
,
roomID
,
roomName
)
{
socket
.
on
(
SOCKET_KEY
.
NEW_COMMUNICATION
,
function
(
message
,
roomID
,
roomName
,
collaborationType
,
meetingID
)
{
CHAT_SOCKET
.
handleMessage
(
message
,
roomName
,
SOCKET_KEY
.
NEW_COMMUNICATION
);
CHAT_SOCKET
.
handleMessage
(
message
,
roomName
,
SOCKET_KEY
.
NEW_COMMUNICATION
,
collaborationType
,
meetingID
);
});
});
};
};
CHAT_SOCKET
.
handleMessage
=
function
(
message
,
roomName
,
socketKey
)
{
CHAT_SOCKET
.
handleMessage
=
function
(
message
,
roomName
,
socketKey
,
collaborationType
=
null
,
meetingID
=
null
)
{
const
systemMessageTemplate
=
getTemplate
(
TemplateURL
.
SYSTEM_MESSAGE
);
const
systemMessageTemplate
=
getTemplate
(
TemplateURL
.
SYSTEM_MESSAGE
);
const
unwrappedMessageInfo
=
CHAT_SOCKET
.
decodeMessage
(
message
.
text
);
const
unwrappedMessageInfo
=
CHAT_SOCKET
.
decodeMessage
(
message
.
text
);
...
@@ -36,7 +36,9 @@ CHAT_SOCKET.handleMessage = function (message, roomName, socketKey) {
...
@@ -36,7 +36,9 @@ CHAT_SOCKET.handleMessage = function (message, roomName, socketKey) {
message
.
userId
,
message
.
userId
,
roomName
,
roomName
,
message
.
insertDate
,
message
.
insertDate
,
message
.
createdAt
message
.
createdAt
,
collaborationType
,
meetingID
);
);
}
else
{
}
else
{
CHAT_SOCKET
.
addTextMessage
(
messageText
,
message
,
socket
.
id
);
CHAT_SOCKET
.
addTextMessage
(
messageText
,
message
,
socket
.
id
);
...
@@ -65,10 +67,12 @@ CHAT_SOCKET.addCollaborationMessage = function (
...
@@ -65,10 +67,12 @@ CHAT_SOCKET.addCollaborationMessage = function (
userID
,
userID
,
roomName
,
roomName
,
insertDate
,
insertDate
,
createdAt
createdAt
,
collaborationTypeInfo
,
meetingIDInfo
)
{
)
{
const
collaborationType
=
CHAT_UTIL
.
getCollaborationType
(
messageInfo
[
2
])
;
const
collaborationType
=
collaborationTypeInfo
;
const
meetingID
=
CHAT_SOCKET
.
getMeetingID
(
collaborationType
,
messageInfo
)
;
const
meetingID
=
meetingIDInfo
;
const
userInCollaboration
=
JSON
.
parse
(
const
userInCollaboration
=
JSON
.
parse
(
NativeBridgeDataSource
.
getUserInfoList
(
userID
)
NativeBridgeDataSource
.
getUserInfoList
(
userID
)
);
);
...
...
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