I'm trying to implement the mutual buddy relationship using the BuddyStorage custom class
So my team have a database that contains all the relationship of my friend system implemented in backend
In the BuddyStorage custom class I've implemented a way that I can load the relationship list from my database to create a BuddyList in the smartfox system when user is logged in by using the method
Code: Select all
loadList(String userName)
But now when User A removes User B from its buddy list I also need that User A is removed from User B's list but the storage don't have any event that indicate when a user is remove from the buddy list of other user
How can I implemented the mutual list for this kind of situation, does the
Code: Select all
saveList(String userName, StorableBuddyList buddyList)
How can I access a BuddyStorage instance of a Zone so that I can implement my own logic for this if the saveList method are not called when the buddy update event come?