(msg)
| 307 | } |
| 308 | |
| 309 | _appendMessage(msg) { |
| 310 | appendLine(this._messagesFile, msg); |
| 311 | this._messages.set(msg.id, msg); |
| 312 | if (msg.direction === 'outbound') this._outbound.push(msg.id); |
| 313 | else if (msg.direction === 'inbound') this._inbound.push(msg.id); |
| 314 | } |
| 315 | |
| 316 | _appendUpdate(id, fields) { |
| 317 | appendLine(this._messagesFile, { _op: 'update', id, fields }); |
no test coverage detected