MCPcopy Create free account
hub / github.com/tinode/chat / leaveMsg

Function leaveMsg

tn-cli/commands.py:174–178  ·  view source on GitHub ↗
(id, cmd, ignored)

Source from the content-addressed store, hash-verified

172
173# {leave}
174def leaveMsg(id, cmd, ignored):
175 if not cmd.topic:
176 cmd.topic = tn_globals.DefaultTopic
177 return pb.ClientMsg(leave=pb.ClientLeave(id=str(id), topic=cmd.topic, unsub=cmd.unsub),
178 extra=pack_extra(cmd))
179
180
181# {pub}

Callers

nothing calls this directly

Calls 1

pack_extraFunction · 0.85

Tested by

no test coverage detected