bluegargantua: (Default)
[personal profile] bluegargantua
So, the server normally sends a message to the Roster letting you know your friends have gone offline. This lets the client update it's display and show you that your buddy Fred has left.

Unless, you're in the same chatroom as Fred. Then, the server just notifies the room that you're leaving and expects the Roster to figure it out from there. Only that's not an accurate depiction of what's going on.

I'm leery about touching the server code this close to a release, but my client-side hacks can only solve one problem by creating another.

Off to the server code:
  When DroppingUser
  {
    If this
    {
      If that
      {
         SendRosterNotice()
      }
    }
  }

So, we do a bunch of fancy conditionals to determine if we should send that Roster notice? How about we brute force it instead?
  When DroppingUser
  {
    SendRosterNotice()
  }

Now, I suppose you might get multiple roster notices that the person has left, but you know what? It doesn't matter.

And guess what? It works like a charm.

Brute Force wins again!
Tom
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

bluegargantua: (Default)
bluegargantua

October 2020

S M T W T F S
    123
45678910
11121314151617
18192021222324
25 262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2025 02:00 pm
Powered by Dreamwidth Studios