diff --git a/components/app.js b/components/app.js index 1a4e0ce..ac375a1 100644 --- a/components/app.js +++ b/components/app.js @@ -934,7 +934,7 @@ export default class App extends Component { var client = this.clients.get(buf.network); - if (!client.enabledCaps["draft/chathistory"] || !client.enabledCaps["server-time"]) { + if (!client || !client.enabledCaps["draft/chathistory"] || !client.enabledCaps["server-time"]) { return; } if (this.endOfHistory.get(buf.id)) {