2

When the chat ads in the sidebar display the last activity information (e.g. "n mins ago - username") the code makes the assumption that there's always a message object to get that activity from.

This apparently isn't always the case though, so the call chat_ad.userLink(e.messages[0]) results in an error message about the passed parameter being undefined when the code tries to access the .user property on it. This error can cause other things from running properly (like my userscripts), though it does appear to happen late enough in the page not to impact any important site functionality.

Alternatively, it's possible that the bug lies in the fact that there weren't any message objects, and the code works off the assumption that there always should be. This was the relevant JSON for the room:

"name":"Your room",
"id":355,
"lastPost":1297627212,
"posts":1,
"users":[ /* Nyuszika7H's user information */ ],
"messages":[],
"events":[]

The last post timestamp listed seems to coincide with this message, even though it doesn't appear in the messages array (despite there being a post count of 1).

1
  • Worth noting that I don't remember reproducing this since then, so it might have been a one-off issue.
    – Tim Stone
    Commented Jan 17, 2013 at 20:07

1 Answer 1

2

Source control is awesome, it's like time travel :)

Kevin fixed this bug a day after you reported it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .