(id, state)
| 174 | } |
| 175 | |
| 176 | updateFriend (id, state) { |
| 177 | if (!(id in this.wsInfos.friends)) { |
| 178 | return |
| 179 | } |
| 180 | this.wsInfos.friends[id] = _.assign(this.wsInfos.friends[id], state) // override friend here |
| 181 | Backbone.Mediator.publish('websocket:user-online', {user: id}) |
| 182 | } |
| 183 | } |
no test coverage detected