It is almost a week and I am stuck due to the buddy list error.
I am using buddy list html example which is provided by Smartfoxserver.
It works as expected in my local environment.
During integration to my own solution where I have custom login to verify user and after login user joins a room.
In the specific page I have a button "Chat", onclick of it I am sending a request to server for InitBuddyListRequest.
Code: Select all
// Initialize the Buddy List system
sfs.send(new SFS2X.Requests.BuddyList.InitBuddyListRequest());
But when I did debug I received an error in JavaScript console, which is from the response of server.
Code: Select all
Uncaught TypeError: Object function (v) {
for (var i = 0; i < this.length; i++) {
if (this[i] === v)
return true;
}
return false;
} has no method 'isNull'
I can't debug this since it is complied JavaScript provided by Smartfoxserver.
My zone configuration for the budddy list is below and I hope someone can help me out.
Code: Select all
<buddyList active="true">
<allowOfflineBuddyVariables>true</allowOfflineBuddyVariables>
<maxItemsPerList>100</maxItemsPerList>
<maxBuddyVariables>15</maxBuddyVariables>
<offlineBuddyVariablesCacheSize>500</offlineBuddyVariablesCacheSize>
<customStorageClass></customStorageClass>
<useTempBuddies>true</useTempBuddies>
<buddyStates>
<string>Available</string>
<string>Away</string>
<string>Occupied</string>
</buddyStates>
<badWordsFilter isActive="true"/>
</buddyList>
Thanks in advance.