From c8fda8ed53ed9c9b17e2eb250f70ba8f9aac8d4f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 4 Apr 2023 16:46:58 +0200 Subject: [PATCH] store: stop matching server URL and nick This was supposed to accomodate for multi-server support, but to be honest this is out of scope for gamja. Closes: https://todo.sr.ht/~emersion/gamja/151 --- store.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/store.js b/store.js index 1b530d1..5361771 100644 --- a/store.js +++ b/store.js @@ -62,8 +62,6 @@ export class Buffer { return JSON.stringify({ name: buf.name.toLowerCase(), server: { - url: buf.server.url, - nick: buf.server.nick.toLowerCase(), bouncerNetwork: buf.server.bouncerNetwork, }, }); @@ -118,8 +116,6 @@ export class Buffer { unread, receipts, server: { - url: buf.server.url, - nick: buf.server.nick, bouncerNetwork: buf.server.bouncerNetwork, }, }); @@ -136,7 +132,7 @@ export class Buffer { list(server) { let buffers = []; for (const buf of this.m.values()) { - if (buf.server.url !== server.url || buf.server.nick !== server.nick || buf.server.bouncerNetwork !== server.bouncerNetwork) { + if (buf.server.bouncerNetwork !== server.bouncerNetwork) { continue; } buffers.push(buf);