1
0
Fork 0
mirror of https://git.sr.ht/~emersion/gamja synced 2025-03-21 20:50:58 -04:00

Fix TypeError in handleBufferScrollTop

Fixes the following:

    TypeError: client is undefined
This commit is contained in:
Simon Ser 2021-05-25 14:28:48 +02:00
parent ed92c3c61a
commit 982a945932

View file

@ -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)) {