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
6b60a3b0
Commit
6b60a3b0
authored
May 26, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ルームに入場している状態で新規メッセージを受信した場合loginで表示される問題対応
parent
6802b30c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
public_new/js/chat-websocket.js
+7
-3
No files found.
public_new/js/chat-websocket.js
View file @
6b60a3b0
...
...
@@ -233,11 +233,15 @@ function setSocketAction () {
var
replacePath
=
message
.
text
;
replacePath
=
replacePath
.
replaceAll
(
'?fileName='
,
'?sid='
+
CHAT
.
globalLoginParameter
.
sid
+
'&fileName='
);
message
.
text
=
replacePath
;
//TODO newMessageの際にDB格納が必要。
var
messageSender
;
if
(
CHAT_UTIL
.
isIOS
())
{
messageSender
=
JSON
.
parse
(
android
.
getUserInfoList
(
message
.
userId
));
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
messageSender
=
JSON
.
parse
(
android
.
getUserInfoList
(
message
.
userId
));
}
let
html
=
Mustache
.
render
(
template
,
{
text
:
message
.
text
,
from
:
message
.
from
,
from
:
message
Sender
[
0
].
shopMemberName
,
profileImage
:
message
.
profileImagePath
,
shopMemberId
:
message
.
userId
,
createdAtDay
:
messageTime
.
createdAtDay
,
...
...
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