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
ab1b8a92
Commit
ab1b8a92
authored
Jul 16, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed android version into device info
parent
e95209e0
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
26 deletions
+25
-26
public_new/chat_room.html
+0
-5
public_new/collaboration.html
+4
-4
public_new/js/Models/coview-userinfo.js
+2
-0
public_new/js/Models/deviceinfo.js
+4
-0
public_new/js/common/native-bridge-delegate.js
+10
-9
public_new/js/views/chats/chat-room.js
+1
-1
public_new/js/views/collaboration/fermi-web-socket-bridge.js
+1
-1
public_new/js/views/collaboration/fermi-web-socket-message-handler.js
+1
-1
public_new/js/views/collaboration/share.js
+2
-5
No files found.
public_new/chat_room.html
View file @
ab1b8a92
...
@@ -181,7 +181,6 @@
...
@@ -181,7 +181,6 @@
$
(
'#pictureModalCenter'
).
modal
(
'show'
);
$
(
'#pictureModalCenter'
).
modal
(
'show'
);
}
}
let
androidVersion
=
0
;
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
...
@@ -196,10 +195,6 @@
...
@@ -196,10 +195,6 @@
NativeBridgeDelegate
.
saveSelectedUserList
(
""
);
NativeBridgeDelegate
.
saveSelectedUserList
(
""
);
if
(
typeof
(
android
)
!=
"undefined"
)
{
androidVersion
=
android
.
getAndroidVersion
();
}
</script>
</script>
</body>
</body>
...
...
public_new/collaboration.html
View file @
ab1b8a92
...
@@ -170,11 +170,11 @@
...
@@ -170,11 +170,11 @@
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
let
androidVersion
=
0
;
if
(
deviceInfo
.
isAndroid
())
{
if
(
deviceInfo
.
isAndroid
())
{
androidVersion
=
android
.
getAndroidVersion
();
if
(
if
(
globalUserInfo
.
collaborationType
.
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
globalUserInfo
.
collaborationType
.
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
alert
(
getLocalizedString
(
'not_support_version'
));
if
(
typeof
android
!=
"undefined"
)
{
if
(
typeof
android
!=
"undefined"
)
{
NativeBridgeDelegate
.
openCommunicationHome
();
NativeBridgeDelegate
.
openCommunicationHome
();
...
...
public_new/js/Models/coview-userinfo.js
View file @
ab1b8a92
...
@@ -15,6 +15,7 @@ var CoviewUserInfo = class {
...
@@ -15,6 +15,7 @@ var CoviewUserInfo = class {
joinType
;
joinType
;
isLeaved
;
isLeaved
;
meetingID
;
meetingID
;
constructor
(
sid
,
loginId
,
roomId
,
shopName
)
{
constructor
(
sid
,
loginId
,
roomId
,
shopName
)
{
this
.
sid
=
sid
;
this
.
sid
=
sid
;
this
.
loginId
=
loginId
;
this
.
loginId
=
loginId
;
...
@@ -23,6 +24,7 @@ var CoviewUserInfo = class {
...
@@ -23,6 +24,7 @@ var CoviewUserInfo = class {
const
unwrappedType
=
NativeBridgeDataSource
.
getJoinCollaborationType
();
const
unwrappedType
=
NativeBridgeDataSource
.
getJoinCollaborationType
();
this
.
collaborationType
=
this
.
parseNumberToCoworkType
(
unwrappedType
);
this
.
collaborationType
=
this
.
parseNumberToCoworkType
(
unwrappedType
);
this
.
joinType
=
NativeBridgeDataSource
.
getCollaborationJoinFlg
();
this
.
joinType
=
NativeBridgeDataSource
.
getCollaborationJoinFlg
();
this
.
isLeaved
=
false
;
this
.
isLeaved
=
false
;
this
.
meetingID
=
0
;
this
.
meetingID
=
0
;
}
}
...
...
public_new/js/Models/deviceinfo.js
View file @
ab1b8a92
...
@@ -9,10 +9,14 @@ NativeBridgeDataSource.getDeviceInfo = function () {
...
@@ -9,10 +9,14 @@ NativeBridgeDataSource.getDeviceInfo = function () {
var
DeviceInfo
=
class
{
var
DeviceInfo
=
class
{
isMoble
;
// iphone or iPad
isMoble
;
// iphone or iPad
platform
;
// ios or android
platform
;
// ios or android
androidVersion
;
constructor
(
deviceInfo
)
{
constructor
(
deviceInfo
)
{
this
.
isMoble
=
deviceInfo
.
isMoble
;
this
.
isMoble
=
deviceInfo
.
isMoble
;
this
.
platform
=
deviceInfo
.
platform
;
this
.
platform
=
deviceInfo
.
platform
;
if
(
typeof
android
!=
"undefined"
)
{
this
.
androidVersion
=
android
.
getAndroidVersion
();
}
}
}
isiOS
()
{
isiOS
()
{
...
...
public_new/js/common/native-bridge-delegate.js
View file @
ab1b8a92
...
@@ -106,7 +106,7 @@ NativeBridgeDelegate.joinCollaboration = function (
...
@@ -106,7 +106,7 @@ NativeBridgeDelegate.joinCollaboration = function (
}
else
if
(
deviceInfo
.
isAndroid
())
{
}
else
if
(
deviceInfo
.
isAndroid
())
{
if
(
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
return
;
...
@@ -239,7 +239,8 @@ NativeBridgeDelegate.inviteCollaboration = function (
...
@@ -239,7 +239,8 @@ NativeBridgeDelegate.inviteCollaboration = function (
userIDList
,
userIDList
,
collaborationType
collaborationType
)
{
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
if
(
typeof
android
!=
"undefined"
)
{
if
(
typeof
android
!=
"undefined"
)
{
android
.
inviteCollaboration
(
userIDList
,
collaborationNumber
);
android
.
inviteCollaboration
(
userIDList
,
collaborationNumber
);
}
else
{
}
else
{
...
@@ -293,7 +294,8 @@ NativeBridgeDelegate.joinChangedCollaboration = function (
...
@@ -293,7 +294,8 @@ NativeBridgeDelegate.joinChangedCollaboration = function (
collaborationType
,
collaborationType
,
meetingID
meetingID
)
{
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
if
(
deviceInfo
.
isiOS
())
{
if
(
deviceInfo
.
isiOS
())
{
webkit
.
messageHandlers
.
joinChangedCollaboration
.
postMessage
({
webkit
.
messageHandlers
.
joinChangedCollaboration
.
postMessage
({
joinCollaborationType
:
collaborationNumber
,
joinCollaborationType
:
collaborationNumber
,
...
@@ -312,17 +314,16 @@ NativeBridgeDelegate.joinMeetingRoom = function (meetingID) {
...
@@ -312,17 +314,16 @@ NativeBridgeDelegate.joinMeetingRoom = function (meetingID) {
}
}
};
};
NativeBridgeDelegate
.
setJoinCollaborationType
=
function
(
NativeBridgeDelegate
.
setJoinCollaborationType
=
function
(
type
)
{
type
,
androidVersion
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
type
);
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
type
);
if
(
deviceInfo
.
isiOS
())
{
if
(
deviceInfo
.
isiOS
())
{
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
collaborationNumber
);
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
collaborationNumber
);
}
else
if
(
deviceInfo
.
isAndroid
())
{
}
else
if
(
deviceInfo
.
isAndroid
())
{
if
(
if
(
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
return
;
...
...
public_new/js/views/chats/chat-room.js
View file @
ab1b8a92
...
@@ -136,7 +136,7 @@ ChatRoom.startCollaboration = function (collaborationType) {
...
@@ -136,7 +136,7 @@ ChatRoom.startCollaboration = function (collaborationType) {
if
(
deviceInfo
.
isAndroid
())
{
if
(
deviceInfo
.
isAndroid
())
{
if
(
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
return
;
...
...
public_new/js/views/collaboration/fermi-web-socket-bridge.js
View file @
ab1b8a92
...
@@ -17,7 +17,7 @@ FermiWebSocketBridge.shareFileHost = function (collaborationType) {
...
@@ -17,7 +17,7 @@ FermiWebSocketBridge.shareFileHost = function (collaborationType) {
FermiWebSocketBridge
.
hostChangeResponse
=
function
()
{
FermiWebSocketBridge
.
hostChangeResponse
=
function
()
{
fw
.
sendToMsg
(
"others"
,
"HOST_CHANGE_RESPONSE"
,
{
fw
.
sendToMsg
(
"others"
,
"HOST_CHANGE_RESPONSE"
,
{
isAndroid
:
deviceInfo
.
isAndroid
(),
isAndroid
:
deviceInfo
.
isAndroid
(),
isAble
:
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
isAble
:
deviceInfo
.
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
loginId
:
currentUserInfo
.
loginID
,
loginId
:
currentUserInfo
.
loginID
,
});
});
};
};
...
...
public_new/js/views/collaboration/fermi-web-socket-message-handler.js
View file @
ab1b8a92
...
@@ -290,7 +290,7 @@ FermiWebSocketMessageHandler.updateJoinChangeCollaboration = function (
...
@@ -290,7 +290,7 @@ FermiWebSocketMessageHandler.updateJoinChangeCollaboration = function (
if
(
if
(
deviceInfo
.
isAndroid
()
&&
deviceInfo
.
isAndroid
()
&&
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
)
{
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
alert
(
getLocalizedString
(
"not_support_version"
));
alert
(
getLocalizedString
(
"not_support_version"
));
...
...
public_new/js/views/collaboration/share.js
View file @
ab1b8a92
...
@@ -35,10 +35,7 @@ function changeCollaboration(collaborationType) {
...
@@ -35,10 +35,7 @@ function changeCollaboration(collaborationType) {
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
NativeBridgeDelegate
.
exitMeetingRoom
();
NativeBridgeDelegate
.
exitMeetingRoom
();
}
}
NativeBridgeDelegate
.
setJoinCollaborationType
(
NativeBridgeDelegate
.
setJoinCollaborationType
(
collaborationType
);
collaborationType
,
androidVersion
);
globalUserInfo
.
collaborationType
=
collaborationType
;
globalUserInfo
.
collaborationType
=
collaborationType
;
updateCollaborationUI
(
collaborationType
);
updateCollaborationUI
(
collaborationType
);
...
@@ -122,7 +119,7 @@ async function updateCollaborationUI(collaborationType) {
...
@@ -122,7 +119,7 @@ async function updateCollaborationUI(collaborationType) {
function
applyForHostChange
()
{
function
applyForHostChange
()
{
if
(
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
&&
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
&&
deviceInfo
.
isAndroid
()
deviceInfo
.
isAndroid
()
)
{
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
alert
(
getLocalizedString
(
"not_support_version"
));
...
...
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