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
d432fcf9
Commit
d432fcf9
authored
Apr 13, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/#520,#521_プッシュメッセージからルームに入場すると操作ができない' into 'release_sp3'
既存処理削除。 See merge request
!44
parents
38d84d35
fb771d1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
56 deletions
+5
-56
public_new/js/chat-ui.js
+4
-24
public_new/js/chat.js
+1
-32
No files found.
public_new/js/chat-ui.js
View file @
d432fcf9
...
...
@@ -1136,15 +1136,11 @@ CHAT_UI.joinRoom = function(roomId,roomName) {
CHAT_UI
.
loadMessages
=
function
(
roomId
,
roomName
)
{
if
(
IS_ONLINE
==
'true'
)
{
CHAT_UI
.
refreshForOnline
();
CHAT_SOCKET
.
connectSocket
();
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateMessages
(
roomId
);
}
else
{
webkit
.
messageHandlers
.
updateMessages
.
postMessage
({
roomId
});
}
socket
.
emit
(
'exitRoom'
,
roomId
);
socket
.
emit
(
'joinRoom'
,
roomId
,
roomName
,
function
()
{
});
}
else
{
CHAT_UI
.
refreshForOffline
();
}
...
...
@@ -1421,7 +1417,7 @@ CHAT_UI.refreshAllGroupSearch = function(paramGroupId) {
$
(
'.overlay_src_msg'
).
empty
();
$
(
'#contactSearch'
).
attr
(
'placeholder'
,
getLocalizedString
(
'searchUserAndGroup'
));
$
(
'#tabAllGroup'
).
prop
(
'checked'
,
true
);
//オンライン状態であればサーバから情報更新。
if
(
IS_ONLINE
==
'true'
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
...
...
@@ -1588,7 +1584,7 @@ CHAT_UI.refreshArchiveScreen = function() {
CHAT_UI
.
dismissLoadingIndicator
();
return
;
}
archiveList
.
forEach
(
function
(
archive
)
{
archiveList
.
forEach
(
function
(
archive
)
{
var
typeImage
=
""
;
switch
(
archive
.
archiveType
)
{
case
0
:
// 画像
...
...
@@ -1716,7 +1712,7 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
document
.
getElementById
(
'joinChatRoom'
).
onclick
=
function
()
{
CHAT_UI
.
joinRoom
(
archive
.
roomId
,
archive
.
roomName
);
}
// loadingIndicatorを非表示
CHAT_UI
.
dismissLoadingIndicator
();
};
...
...
@@ -2143,21 +2139,6 @@ CHAT_UI.refreshMyGroupForAddUser = function() {
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#favoriteListForMakeRoom'
).
append
(
obj
);
/*favoriteUserList.forEach(function(favoriteUser) {
favoriteUser.profileImagePath = CHAT.getProfileImgUrl(favoriteUser.profileUrl)
let html = Mustache.render(userTemplate, {
shopMemberId: favoriteUser.shopMemberId,
profileImage: favoriteUser.profileImagePath,
name: favoriteUser.shopMemberName,
isFavorite: true
});
let obj = $(jQuery.parseHTML(html)).on('click', function() {
});
$('#favoriteList').append(obj);
})*/
var
myGroupList
=
CHAT_DB
.
getMyGroupUsersNotInRoom
();
myGroupList
.
forEach
(
function
(
myGroup
)
{
...
...
@@ -2192,8 +2173,7 @@ CHAT_UI.refreshForOnline = function() {
$
(
'.fa-download'
).
show
();
if
(
typeof
$
(
'#roomTitle'
).
val
()
!=
'undefined'
)
{
CHAT_SOCKET
.
connectSocket
();
socket
.
emit
(
'exitRoom'
,
CHAT
.
globalLoginParameter
.
roomId
);
socket
.
emit
(
'joinRoom'
,
CHAT
.
globalLoginParameter
.
roomId
,
CHAT
.
globalLoginParameter
.
roomName
,
function
()
{
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
});
}
}
...
...
public_new/js/chat.js
View file @
d432fcf9
...
...
@@ -242,38 +242,7 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam
languageCode
=
"en"
}
CHAT_UI
.
htmlElementTextInitialize
(
languageCode
)
if
(
IS_ONLINE
==
'true'
)
{
socket
.
emit
(
'join'
,
loginParam
,
function
(
err
)
{
if
(
err
)
{
// #36174
$
(
"#customAlertTitle"
).
text
(
err
);
$
(
"#customAlertOk"
).
text
(
getLocalizedString
(
"yesTitle"
));
$
(
'#customAlert'
).
appendTo
(
"body"
).
modal
({
backdrop
:
'static'
,
keyboard
:
false
})
.
on
(
'click'
,
'#customAlertOk'
,
function
(
e
)
{
});
}
else
{
if
(
loginParam
.
roomName
!=
undefined
&&
loginParam
.
roomName
!=
"null"
)
{
$
(
'.titleRoomName'
).
text
(
loginParam
.
roomName
).
data
(
'roomName'
,
loginParam
.
roomName
);
}
else
{
// 設定されていたroomNameがない場合
let
roomListTitle
=
getLocalizedString
(
"roomListTitle"
)
$
(
'.titleRoomName'
).
text
(
roomListTitle
).
data
(
'roomName'
,
roomListTitle
);
}
}
// loadingIndicatorを表示しない
CHAT_UI
.
dismissLoadingIndicator
();
});
}
else
{
// loadingIndicatorを表示しない
CHAT_UI
.
dismissLoadingIndicator
();
}
CHAT_UI
.
dismissLoadingIndicator
();
}
CHAT
.
leaveRoom
=
function
()
{
...
...
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