mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 18:45:20 +00:00
Fix: route /hug and /slap to active public channel using sendPublicRaw (geohash when selected)
This commit is contained in:
@@ -136,8 +136,8 @@ class CommandProcessor {
|
|||||||
chatViewModel?.addLocalPrivateSystemMessage(localText, to: targetPeerID)
|
chatViewModel?.addLocalPrivateSystemMessage(localText, to: targetPeerID)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// In public chat: send to mesh and also add a local system echo so sender sees it immediately
|
// In public chat: send to active public channel (mesh or geohash)
|
||||||
meshService?.sendMessage(emoteContent, mentions: [])
|
chatViewModel?.sendPublicRaw(emoteContent)
|
||||||
let publicEcho = "\(emoji) \(myNickname) \(action) \(nickname)\(suffix)"
|
let publicEcho = "\(emoji) \(myNickname) \(action) \(nickname)\(suffix)"
|
||||||
chatViewModel?.addPublicSystemMessage(publicEcho)
|
chatViewModel?.addPublicSystemMessage(publicEcho)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user