mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Send WHO queries for saved user buffers after ISUPPORT
This allows WHOX to be used.
This commit is contained in:
parent
fdb90ec95d
commit
1dd55367e9
1 changed files with 12 additions and 9 deletions
|
@ -584,15 +584,6 @@ export default class App extends Component {
|
|||
});
|
||||
}
|
||||
|
||||
// Restore opened user query buffers
|
||||
for (let buf of this.bufferStore.list(client.params)) {
|
||||
if (buf.name === "*" || client.isChannel(buf.name)) {
|
||||
continue;
|
||||
}
|
||||
this.createBuffer(serverID, buf.name);
|
||||
this.whoUserBuffer(buf.name, serverID);
|
||||
}
|
||||
|
||||
let lastReceipt = this.latestReceipt(ReceiptType.DELIVERED);
|
||||
if (lastReceipt && lastReceipt.time && client.enabledCaps["draft/chathistory"] && (!client.enabledCaps["soju.im/bouncer-networks"] || client.params.bouncerNetwork)) {
|
||||
let now = irc.formatDate(new Date());
|
||||
|
@ -605,6 +596,18 @@ export default class App extends Component {
|
|||
});
|
||||
}
|
||||
break;
|
||||
case irc.RPL_ENDOFMOTD:
|
||||
case irc.ERR_NOMOTD:
|
||||
// These messages are used to indicate the end of the ISUPPORT list
|
||||
|
||||
// Restore opened user query buffers
|
||||
for (let buf of this.bufferStore.list(client.params)) {
|
||||
if (buf.name === "*" || client.isChannel(buf.name)) {
|
||||
continue;
|
||||
}
|
||||
this.createBuffer(serverID, buf.name);
|
||||
this.whoUserBuffer(buf.name, serverID);
|
||||
}
|
||||
case "MODE":
|
||||
target = msg.params[0];
|
||||
if (client.isChannel(target)) {
|
||||
|
|
Loading…
Reference in a new issue