mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Fix TypeError in handleBufferScrollTop
Fixes the following: TypeError: client is undefined
This commit is contained in:
parent
ed92c3c61a
commit
982a945932
@ -934,7 +934,7 @@ export default class App extends Component {
|
|||||||
|
|
||||||
var client = this.clients.get(buf.network);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (this.endOfHistory.get(buf.id)) {
|
if (this.endOfHistory.get(buf.id)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user