Fix: route /hug and /slap to active public channel using sendPublicRaw (geohash when selected)

This commit is contained in:
jack
2025-08-21 01:59:47 +02:00
parent 916f535503
commit eb0debd52a
+2 -2
View File
@@ -136,8 +136,8 @@ class CommandProcessor {
chatViewModel?.addLocalPrivateSystemMessage(localText, to: targetPeerID)
}
} else {
// In public chat: send to mesh and also add a local system echo so sender sees it immediately
meshService?.sendMessage(emoteContent, mentions: [])
// In public chat: send to active public channel (mesh or geohash)
chatViewModel?.sendPublicRaw(emoteContent)
let publicEcho = "\(emoji) \(myNickname) \(action) \(nickname)\(suffix)"
chatViewModel?.addPublicSystemMessage(publicEcho)
}