MCPcopy Create free account
hub / github.com/CommE2E/comm / getProtocolByThreadID

Function getProtocolByThreadID

lib/shared/threads/protocols/thread-protocols.js:17–19  ·  view source on GitHub ↗
(threadID: string)

Source from the content-addressed store, hash-verified

15];
16
17function getProtocolByThreadID(threadID: string): ?ThreadProtocol<any> {
18 return protocols().find(p => p.threadIDMatchesProtocol(threadID));
19}
20
21function getProtocolByName(name: ?ProtocolName): ?ThreadProtocol<any> {
22 return protocols().find(p => p.protocolName === name);

Calls 1

protocolsFunction · 0.85

Tested by

no test coverage detected