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

Method TopicUpdateOnMessage

server/db/adapter.go:123–123  ·  view source on GitHub ↗

TopicUpdateOnMessage increments Topic's or User's SeqId value and updates TouchedAt timestamp.

(topic string, msg *t.Message)

Source from the content-addressed store, hash-verified

121 TopicDelete(topic string, isChan, hard bool) error
122 // TopicUpdateOnMessage increments Topic's or User's SeqId value and updates TouchedAt timestamp.
123 TopicUpdateOnMessage(topic string, msg *t.Message) error
124 // TopicUpdateSubCnt refreshes denormalized topic subscriber count.
125 TopicUpdateSubCnt(topic string) error
126 // TopicUpdate updates topic record.

Callers 5

SaveMethod · 0.65
TestTopicUpdateOnMessageFunction · 0.65
TestTopicUpdateOnMessageFunction · 0.65
TestTopicUpdateOnMessageFunction · 0.65
TestTopicUpdateOnMessageFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 4

TestTopicUpdateOnMessageFunction · 0.52
TestTopicUpdateOnMessageFunction · 0.52
TestTopicUpdateOnMessageFunction · 0.52
TestTopicUpdateOnMessageFunction · 0.52