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)
| 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. |
| 226 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…