Only nag about notifications in server buffer

This commit is contained in:
Simon Ser 2020-07-01 11:58:30 +02:00
parent 2eb1ed3dd2
commit 1131ca05ee
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1,6 +1,7 @@
import { html, Component } from "/lib/index.js";
import linkify from "/lib/linkify.js";
import * as irc from "/lib/irc.js";
import { BufferType } from "/state.js";
function djb2(s) {
var hash = 5381;
@ -137,9 +138,14 @@ export default function Buffer(props) {
return null;
}
var notifNagger = null;
if (props.buffer.type == BufferType.SERVER) {
notifNagger = html`<${NotificationNagger}/>`;
}
return html`
<div class="logline-list">
<${NotificationNagger}/>
${notifNagger}
${props.buffer.messages.map((msg) => html`
<${LogLine} key=${msg.key} message=${msg} onNickClick=${props.onNickClick}/>
`)}