From da4da01e341b986990bb73d196c055c2c248b955 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Sep 2021 17:06:32 +0200 Subject: [PATCH] Query WHO when switching to a user buffer without info Closes: https://todo.sr.ht/~emersion/gamja/101 --- components/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/app.js b/components/app.js index b0d6b4d..2e47e2c 100644 --- a/components/app.js +++ b/components/app.js @@ -326,6 +326,11 @@ export default class App extends Component { server: client.params, unread: Unread.NONE, }); + + let server = this.state.servers.get(buf.server); + if (buf.type === BufferType.NICK && !server.users.has(buf.name)) { + this.whoUserBuffer(buf.name, buf.server); + } }); }