MCPcopy Index your code
hub / github.com/tinode/chat / handleUATimerEvent

Method handleUATimerEvent

server/topic.go:502–509  ·  view source on GitHub ↗
(currentUA string)

Source from the content-addressed store, hash-verified

500}
501
502func (t *Topic) handleUATimerEvent(currentUA string) {
503 // Publish user agent changes after a delay
504 if currentUA == "" || currentUA == t.userAgent {
505 return
506 }
507 t.userAgent = currentUA
508 t.presUsersOfInterest("ua", t.userAgent)
509}
510
511func (t *Topic) handleTopicTimeout(hub *Hub, currentUA string, uaTimer, defrNotifTimer *time.Timer) {
512 // Topic timeout

Callers 2

runLocalMethod · 0.95
TestHandleUATimerEventFunction · 0.80

Calls 1

presUsersOfInterestMethod · 0.95

Tested by 1

TestHandleUATimerEventFunction · 0.64