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

Function parse_trusted

tn-cli/utils.py:176–187  ·  view source on GitHub ↗
(trusted)

Source from the content-addressed store, hash-verified

174
175# Parse trusted values: [staff,rm-verified].
176def parse_trusted(trusted):
177 result = None
178 if trusted != None:
179 result = {}
180 for t in trusted.split(","):
181 t = t.strip()
182 if t.startswith("rm-"):
183 result[t[3:]] = False
184 else:
185 result[t] = True
186
187 return result

Callers 3

accMsgFunction · 0.90
subMsgFunction · 0.90
setMsgFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…