isOnile の判定を文字列からbool値に変更した。
Showing
... | ... | @@ -66,7 +66,7 @@ NativeBridgeDelegate.createChatRoom = function ( |
}; | ||
NativeBridgeDelegate.updateContactInfo = function () { | ||
if (serverInfo.isOnline != "true") { | ||
if (serverInfo.isOnline != true) { | ||
Please
register
or
sign in
to reply
|
||
return; | ||
} | ||
NativeBridgeDelegate.updateGroupInfo("0"); | ||
... | ... | @@ -82,7 +82,7 @@ NativeBridgeDelegate.updateContactInfo = function () { |
}; | ||
NativeBridgeDelegate.updateGroupInfo = function (groupID) { | ||
if (serverInfo.isOnline == "true") { | ||
if (serverInfo.isOnline == true) { | ||
if (typeof android != "undefined") { | ||
// TODO: peacekim:: check this method is right or not | ||
android.updateGroupUser(); | ||
... | ... | @@ -192,7 +192,7 @@ NativeBridgeDelegate.goHome = function () { |
NativeBridgeDelegate.updatePreMessage = function (messageID) { | ||
if (typeof android != "undefined") { | ||
if (serverInfo.isOnline == "true") { | ||
if (serverInfo.isOnline == true) { | ||
android.updatePreMessage(messageID); | ||
} | ||
} else { | ||
... | ... |