bkad / prat

group chat with markdown served over websockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS collection error

cespare opened this issue · comments

Just noticed a JS error a couple of times as I was messing around with various stuff.

Uncaught TypeError: Cannot read property 'collection' of undefined

I think the second time it was triggered after I closed several channels. I don't remember what I was doing the first time.

Stack trace shows that it's coming from user_statuses.coffee, line 86:

collection.remove(data.user.email)

I think the email isn't in the collection when that's called.