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 @@
$
(
'#pictureModalCenter'
).
modal
(
'show'
);
}
let
androidVersion
=
0
;
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
...
...
@@ -196,10 +195,6 @@
NativeBridgeDelegate
.
saveSelectedUserList
(
""
);
if
(
typeof
(
android
)
!=
"undefined"
)
{
androidVersion
=
android
.
getAndroidVersion
();
}
</script>
</body>
...
...
public_new/collaboration.html
View file @
ab1b8a92
...
...
@@ -170,11 +170,11 @@
$
(
"#zoom"
).
load
(
"./zoom.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
let
androidVersion
=
0
;
if
(
deviceInfo
.
isAndroid
())
{
androidVersion
=
android
.
getAndroidVersion
();
if
(
globalUserInfo
.
collaborationType
.
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
if
(
globalUserInfo
.
collaborationType
.
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
'not_support_version'
));
if
(
typeof
android
!=
"undefined"
)
{
NativeBridgeDelegate
.
openCommunicationHome
();
...
...
public_new/js/Models/coview-userinfo.js
View file @
ab1b8a92
...
...
@@ -15,6 +15,7 @@ var CoviewUserInfo = class {
joinType
;
isLeaved
;
meetingID
;
constructor
(
sid
,
loginId
,
roomId
,
shopName
)
{
this
.
sid
=
sid
;
this
.
loginId
=
loginId
;
...
...
@@ -23,6 +24,7 @@ var CoviewUserInfo = class {
const
unwrappedType
=
NativeBridgeDataSource
.
getJoinCollaborationType
();
this
.
collaborationType
=
this
.
parseNumberToCoworkType
(
unwrappedType
);
this
.
joinType
=
NativeBridgeDataSource
.
getCollaborationJoinFlg
();
this
.
isLeaved
=
false
;
this
.
meetingID
=
0
;
}
...
...
public_new/js/Models/deviceinfo.js
View file @
ab1b8a92
...
...
@@ -9,10 +9,14 @@ NativeBridgeDataSource.getDeviceInfo = function () {
var
DeviceInfo
=
class
{
isMoble
;
// iphone or iPad
platform
;
// ios or android
androidVersion
;
constructor
(
deviceInfo
)
{
this
.
isMoble
=
deviceInfo
.
isMoble
;
this
.
platform
=
deviceInfo
.
platform
;
if
(
typeof
android
!=
"undefined"
)
{
this
.
androidVersion
=
android
.
getAndroidVersion
();
}
}
isiOS
()
{
...
...
public_new/js/common/native-bridge-delegate.js
View file @
ab1b8a92
...
...
@@ -106,7 +106,7 @@ NativeBridgeDelegate.joinCollaboration = function (
}
else
if
(
deviceInfo
.
isAndroid
())
{
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
...
...
@@ -239,7 +239,8 @@ NativeBridgeDelegate.inviteCollaboration = function (
userIDList
,
collaborationType
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
if
(
typeof
android
!=
"undefined"
)
{
android
.
inviteCollaboration
(
userIDList
,
collaborationNumber
);
}
else
{
...
...
@@ -293,7 +294,8 @@ NativeBridgeDelegate.joinChangedCollaboration = function (
collaborationType
,
meetingID
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
collaborationType
);
if
(
deviceInfo
.
isiOS
())
{
webkit
.
messageHandlers
.
joinChangedCollaboration
.
postMessage
({
joinCollaborationType
:
collaborationNumber
,
...
...
@@ -312,17 +314,16 @@ NativeBridgeDelegate.joinMeetingRoom = function (meetingID) {
}
};
NativeBridgeDelegate
.
setJoinCollaborationType
=
function
(
type
,
androidVersion
)
{
NativeBridgeDelegate
.
setJoinCollaborationType
=
function
(
type
)
{
const
collaborationNumber
=
CHAT_UTIL
.
getCollaborationTypeNumber
(
type
);
if
(
deviceInfo
.
isiOS
())
{
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
collaborationNumber
);
webkit
.
messageHandlers
.
setJoinCollaborationType
.
postMessage
(
collaborationNumber
);
}
else
if
(
deviceInfo
.
isAndroid
())
{
if
(
type
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
...
...
public_new/js/views/chats/chat-room.js
View file @
ab1b8a92
...
...
@@ -136,7 +136,7 @@ ChatRoom.startCollaboration = function (collaborationType) {
if
(
deviceInfo
.
isAndroid
())
{
if
(
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
alert
(
getLocalizedString
(
"not_support_version"
));
return
;
...
...
public_new/js/views/collaboration/fermi-web-socket-bridge.js
View file @
ab1b8a92
...
...
@@ -17,7 +17,7 @@ FermiWebSocketBridge.shareFileHost = function (collaborationType) {
FermiWebSocketBridge
.
hostChangeResponse
=
function
()
{
fw
.
sendToMsg
(
"others"
,
"HOST_CHANGE_RESPONSE"
,
{
isAndroid
:
deviceInfo
.
isAndroid
(),
isAble
:
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
isAble
:
deviceInfo
.
androidVersion
>=
ANDROID_SDK_VERSION
.
O
,
loginId
:
currentUserInfo
.
loginID
,
});
};
...
...
public_new/js/views/collaboration/fermi-web-socket-message-handler.js
View file @
ab1b8a92
...
...
@@ -290,7 +290,7 @@ FermiWebSocketMessageHandler.updateJoinChangeCollaboration = function (
if
(
deviceInfo
.
isAndroid
()
&&
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
)
{
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
alert
(
getLocalizedString
(
"not_support_version"
));
...
...
public_new/js/views/collaboration/share.js
View file @
ab1b8a92
...
...
@@ -35,10 +35,7 @@ function changeCollaboration(collaborationType) {
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
NativeBridgeDelegate
.
exitMeetingRoom
();
}
NativeBridgeDelegate
.
setJoinCollaborationType
(
collaborationType
,
androidVersion
);
NativeBridgeDelegate
.
setJoinCollaborationType
(
collaborationType
);
globalUserInfo
.
collaborationType
=
collaborationType
;
updateCollaborationUI
(
collaborationType
);
...
...
@@ -122,7 +119,7 @@ async function updateCollaborationUI(collaborationType) {
function
applyForHostChange
()
{
if
(
globalUserInfo
.
collaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
&&
androidVersion
<
ANDROID_SDK_VERSION
.
O
&&
deviceInfo
.
androidVersion
<
ANDROID_SDK_VERSION
.
O
&&
deviceInfo
.
isAndroid
()
)
{
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