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

Function userChannelsSubUnsub

server/user.go:700–706  ·  view source on GitHub ↗

Subscribe or unsubscribe a single user's device to/from all FCM topics (channels).

(uid types.Uid, deviceID string, sub bool)

Source from the content-addressed store, hash-verified

698
699// Subscribe or unsubscribe a single user's device to/from all FCM topics (channels).
700func userChannelsSubUnsub(uid types.Uid, deviceID string, sub bool) {
701 push.ChannelSub(&push.ChannelReq{
702 Uid: uid,
703 DeviceID: deviceID,
704 Unsub: !sub,
705 })
706}
707
708// UserCacheReq contains data which mutates one or more user cache entries.
709type UserCacheReq struct {

Callers 1

helloMethod · 0.85

Calls 1

ChannelSubFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…