feat: add client call feature switches

This commit is contained in:
richjohnrambo
2026-09-03 21:05:33 +08:00
parent d6de2a0349
commit c1bfa503cf
9 changed files with 97 additions and 12 deletions
+1 -1
View File
@@ -1218,7 +1218,7 @@ func (t *Topic) handlePubBroadcast(msg *ClientComMessage) {
isCall := msg.Pub.Head != nil && msg.Pub.Head["webrtc"] != nil
if isCall {
if len(globals.iceServers) == 0 {
if !imCallFeatureEnabled() {
msg.sess.queueOut(ErrNotImplementedReply(msg, types.TimeNow()))
return
}