MCPcopy Create free account
hub / github.com/daodst/chat / valid

Method valid

clientapi/routing/server_notices.go:268–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268func (r sendServerNoticeRequest) valid() (ok bool) {
269 if r.UserID == "" {
270 return false
271 }
272 if r.Content.MsgType == "" || r.Content.Body == "" {
273 return false
274 }
275 return true
276}
277
278// getSenderDevice creates a user account to be used when sending server notices.
279// It returns an userapi.Device, which is used for building the event

Callers 2

SendServerNoticeFunction · 0.95

Calls

no outgoing calls

Tested by 1