mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
chan: type untyped method params
This commit is contained in:
parent
540144c417
commit
4614c35486
1 changed files with 8 additions and 4 deletions
|
@ -62,8 +62,6 @@ class Chan {
|
||||||
|
|
||||||
pushMessage(client: Client, msg: Msg, increasesUnread = false) {
|
pushMessage(client: Client, msg: Msg, increasesUnread = false) {
|
||||||
const chanId = this.id;
|
const chanId = this.id;
|
||||||
const obj = {chan: chanId, msg, unread: undefined, highlight: undefined};
|
|
||||||
|
|
||||||
msg.id = client.idMsg++;
|
msg.id = client.idMsg++;
|
||||||
|
|
||||||
// If this channel is open in any of the clients, do not increase unread counter
|
// If this channel is open in any of the clients, do not increase unread counter
|
||||||
|
@ -117,7 +115,7 @@ class Chan {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dereferencePreviews(messages) {
|
dereferencePreviews(messages: Msg[]) {
|
||||||
if (!Config.values.prefetch || !Config.values.prefetchStorage) {
|
if (!Config.values.prefetch || !Config.values.prefetchStorage) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -334,7 +332,13 @@ class Chan {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestZncPlayback(channel, network, from) {
|
function requestZncPlayback(channel: Chan, network: Network, from: number) {
|
||||||
|
if (!network.irc) {
|
||||||
|
throw new Error(
|
||||||
|
`requestZncPlayback: no irc field on network "${network.name}", this is a bug`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
network.irc.raw("ZNC", "*playback", "PLAY", channel.name, from.toString());
|
network.irc.raw("ZNC", "*playback", "PLAY", channel.name, from.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue