mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
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
This commit is contained in:
parent
fd63c169ed
commit
c8fda8ed53
1 changed files with 1 additions and 5 deletions
6
store.js
6
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);
|
||||
|
|
Loading…
Reference in a new issue