forked from CringeStudios/gamja
Only nag about notifications in server buffer
This commit is contained in:
parent
2eb1ed3dd2
commit
1131ca05ee
@ -1,6 +1,7 @@
|
|||||||
import { html, Component } from "/lib/index.js";
|
import { html, Component } from "/lib/index.js";
|
||||||
import linkify from "/lib/linkify.js";
|
import linkify from "/lib/linkify.js";
|
||||||
import * as irc from "/lib/irc.js";
|
import * as irc from "/lib/irc.js";
|
||||||
|
import { BufferType } from "/state.js";
|
||||||
|
|
||||||
function djb2(s) {
|
function djb2(s) {
|
||||||
var hash = 5381;
|
var hash = 5381;
|
||||||
@ -137,9 +138,14 @@ export default function Buffer(props) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var notifNagger = null;
|
||||||
|
if (props.buffer.type == BufferType.SERVER) {
|
||||||
|
notifNagger = html`<${NotificationNagger}/>`;
|
||||||
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div class="logline-list">
|
<div class="logline-list">
|
||||||
<${NotificationNagger}/>
|
${notifNagger}
|
||||||
${props.buffer.messages.map((msg) => html`
|
${props.buffer.messages.map((msg) => html`
|
||||||
<${LogLine} key=${msg.key} message=${msg} onNickClick=${props.onNickClick}/>
|
<${LogLine} key=${msg.key} message=${msg} onNickClick=${props.onNickClick}/>
|
||||||
`)}
|
`)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user