From d3628928b919bd12deb224f5c3db3a7be5e7140b Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 21 Sep 2022 16:32:08 +0200
Subject: xC/xP: relay and render channel modes
---
xP/public/xP.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'xP/public/xP.js')
diff --git a/xP/public/xP.js b/xP/public/xP.js
index f418d50..7bbf530 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -328,6 +328,7 @@ rpcEventHandlers.set(Relay.Event.BufferUpdate, e => {
b.kind = e.context.kind
b.server = servers.get(e.context.serverName)
b.topic = e.context.topic
+ b.modes = e.context.modes
})
rpcEventHandlers.set(Relay.Event.BufferStats, e => {
@@ -702,6 +703,8 @@ let Status = {
return m('.status', {}, 'Synchronizing...')
let status = `${bufferCurrent}`
+ if (b.modes)
+ status += `(+${b.modes})`
if (b.hideUnimportant)
status += `