MCPcopy
hub / github.com/tinode/chat / IsChannel

Function IsChannel

server/store/types/types.go:226–228  ·  view source on GitHub ↗

IsChannel checks if the given topic name is a reference to a channel. The "nch" should not be considered a channel reference because it can only be used by the topic owner at the time of group topic creation.

(name string)

Source from the content-addressed store, hash-verified

224// The "nch" should not be considered a channel reference because it can only be used by the topic owner at the time of
225// group topic creation.
226func IsChannel(name string) bool {
227 return strings.HasPrefix(name, "chn")
228}
229
230// ChnToGrp gets group topic name from channel name.
231// If it's a non-channel group topic, the name is returned unchanged.

Callers 10

proxyMasterResponseMethod · 0.92
topicUnregMethod · 0.92
replyOfflineTopicGetSubFunction · 0.92
replyOfflineTopicSetSubFunction · 0.92
broadcastToSessionsMethod · 0.92
replyGetSubMethod · 0.92
verifyChannelAccessMethod · 0.92
notifyOnOrSkipFunction · 0.92
TopicMasterMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…