feat: add im home and message action flows

This commit is contained in:
richjohnrambo
2026-08-12 10:36:41 +08:00
parent d239e37f56
commit 5bd35f97a6
21 changed files with 3087 additions and 61 deletions
+4
View File
@@ -762,6 +762,10 @@ func (s *Session) publish(msg *ClientComMessage) {
logs.Err.Println("s.publish: sub.broadcast channel full, topic ", msg.RcptTo, s.sid)
}
} else if msg.RcptTo == "sys" {
if s.authLvl != auth.LevelRoot {
s.queueOut(ErrPermissionDeniedReply(msg, msg.Timestamp))
return
}
// Publishing to "sys" topic requires no subscription.
select {
case globals.hub.routeCli <- msg: