Commit d44542e1 by Takatoshi Miura

Merge branch 'bugfix/#42579_favorite_offline' into 'release_sp3'

[iOS]お気に入りグループ解除処理修正

See merge request !81
parents 7faebae6 a1729a16
...@@ -289,6 +289,18 @@ CHAT_DB.addFavoriteUser = function(shopMemberId) { ...@@ -289,6 +289,18 @@ CHAT_DB.addFavoriteUser = function(shopMemberId) {
} }
}; };
CHAT_DB.removeFavoriteGroup = function(groupId) {
// Androidは実装不要
if (CHAT_UTIL.isIOS()) {
var result = callNativeApp("removeFavoriteGroup", {"groupId": groupId});
if (result == "true") {
return true;
} else {
return false;
}
}
};
CHAT_DB.addFavoriteGroup = function(groupId) { CHAT_DB.addFavoriteGroup = function(groupId) {
// Androidは実装不要 // Androidは実装不要
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
......
...@@ -1469,7 +1469,7 @@ CHAT_UI.removeFavoriteGroup = function(groupId) { ...@@ -1469,7 +1469,7 @@ CHAT_UI.removeFavoriteGroup = function(groupId) {
if (typeof(android) != "undefined") { if (typeof(android) != "undefined") {
result = android.removeFavoriteGroup(groupId); result = android.removeFavoriteGroup(groupId);
} else { } else {
result = webkit.messageHandlers.removeFavoriteGroup.postMessage(groupId); result = CHAT_DB.removeFavoriteGroup(groupId);
} }
if (!result) { if (!result) {
$('.group_'+groupId).addClass('active'); $('.group_'+groupId).addClass('active');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment