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

Function IsEphemeralTopic

server/store/types/types.go:1395–1398  ·  view source on GitHub ↗

IsEphemeralTopic checks if the topic is ephemeral, i.e. it's a reference to the user, it's not stored in the 'topics' table like 'me' or 'fnd' topics.

(topic string)

Source from the content-addressed store, hash-verified

1393// IsEphemeralTopic checks if the topic is ephemeral, i.e. it's a reference to the user,
1394// it's not stored in the 'topics' table like 'me' or 'fnd' topics.
1395func IsEphemeralTopic(topic string) bool {
1396 cat := GetTopicCat(topic)
1397 return cat == TopicCatMe || cat == TopicCatFnd
1398}
1399
1400// DeviceDef is the data provided by connected device. Used primarily for
1401// push notifications.

Callers 1

CreateMethod · 0.92

Calls 1

GetTopicCatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…