Page 1 of 1

Remove Offline Buddy

Posted: 25 Jul 2017, 11:53
by ersindemir
How can I remove buddy if he is offline?

public void removeBuddy(Zone zone,java.lang.String ownerName,java.lang.String buddyName,boolean fireClientEvent,boolean fireServerEvent)

Function is exist but description of this function is "Removes a Buddy from the owner's BuddyList even if the User is not online at the moment This feature is not implemented yet."

I found 2 posts which they are send 2 years ago. Has any solution yet ?

Smartfox v. : 2.12.0

Re: Remove Offline Buddy

Posted: 25 Jul 2017, 13:40
by Lapo
{{ This topic has been moved in the SFS2X section }}

what you have read is still valid. Typically it's the User who changes his/her buddy list and in order to do that he must be connected, so 99% of the times this is not a problem.

When a User is not online his buddy list is data is not kept in the server's memory (otherwise it would require too much RAM), therefore the only way to manipulate a BuddyList when it's owner is offline is to directly alter the stored buddy list data.

Typically this works best with a custom BuddyList persistence system: ... y-list-api