Jump to content

Recommended Posts

I noticed it while i was writing some kind of blocking system.

 

If you add an user as a friend, a dialog goes to him and put each other to friendlist.

but if you remove him from your friendlist, it is only deleted from you.

In the block system, you can never block if you are on the other's friends list. Therefore the blocking system has lost its functions.

 

First, we're adding an user to friendlist.

Spoiler

170139image.png

He continues to be on the friends list even I deleted him from friends.

 

Spoiler

170139imagedc97581635b2f8b5.png

 

After you make this fix, it will be deleted from the friends list when he is teleported.

 

search in Input_main.cpp

        MessengerManager::instance().RemoveFromList(ch->GetName(), char_name);

add below:

        MessengerManager::instance().RemoveFromList(char_name, ch->GetName());//friend removed from companion too.

 

  • Metin2 Dev 1
  • Love 3
Link to comment
https://metin2.dev/topic/20914-fix-removing-from-messenger/
Share on other sites

  • Bot

@Tunga It was not adressed to you. I'm glad you have described the bug at least somehow.
@hachiwari That is incorrect. You can write best code on the world but nobody will be able to fully understand it without comments. Speaking about big code, not hello world.

  • Love 1

english_banner.gif

  • 6 years later...
  • Active+ Member
On 3/28/2019 at 11:35 PM, TAUMP said:

 

I fixed 2 years ago, but no 1 linex dd

Yeah I know Im bumping an old question but I haven't managed to fix this one. I fixed the synchronization for removing a friend but not for adding. When accepting a request, the character that made the request does not see the update. After removing a friend and adding them again, I keep seeing that friend offline when they relog even if they are online. And the toolbar with the "Friend" button does not update on removing or to the request sender when accepting their request.

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.