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

Function getDataIsBackedUpByThread

lib/shared/threads/protocols/thread-protocols.js:25–33  ·  view source on GitHub ↗
(
  threadID: string,
  threadInfo: ?(LegacyRawThreadInfo | RawThreadInfo),
)

Source from the content-addressed store, hash-verified

23}
24
25function getDataIsBackedUpByThread(
26 threadID: string,
27 threadInfo: ?(LegacyRawThreadInfo | RawThreadInfo),
28): boolean {
29 if (threadInfo) {
30 return threadSpecs[threadInfo.type].protocol().dataIsBackedUp;
31 }
32 return !!getProtocolByThreadID(threadID)?.dataIsBackedUp;
33}
34
35export {
36 protocols,

Calls 1

getProtocolByThreadIDFunction · 0.85

Tested by

no test coverage detected