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

Method handleMetaDel

server/topic.go:443–459  ·  view source on GitHub ↗
(msg *ClientComMessage, asUid types.Uid, asChan bool, authLevel auth.Level)

Source from the content-addressed store, hash-verified

441}
442
443func (t *Topic) handleMetaDel(msg *ClientComMessage, asUid types.Uid, asChan bool, authLevel auth.Level) {
444 var err error
445 switch msg.MetaWhat {
446 case constMsgDelMsg:
447 err = t.replyDelMsg(msg.sess, asUid, asChan, msg)
448 case constMsgDelSub:
449 err = t.replyDelSub(msg.sess, asUid, msg)
450 case constMsgDelTopic:
451 err = t.replyDelTopic(msg.sess, asUid, msg)
452 case constMsgDelCred:
453 err = t.replyDelCred(msg.sess, asUid, authLevel, msg)
454 }
455
456 if err != nil {
457 logs.Warn.Printf("topic[%s] meta.Del failed: %v", t.name, err)
458 }
459}
460
461// handleMeta implements logic handling meta requests
462// received via the Topic.meta channel.

Callers 1

handleMetaMethod · 0.95

Calls 4

replyDelMsgMethod · 0.95
replyDelSubMethod · 0.95
replyDelTopicMethod · 0.95
replyDelCredMethod · 0.95

Tested by

no test coverage detected