( threadID: string, threadInfo: ?(LegacyRawThreadInfo | RawThreadInfo), )
| 23 | } |
| 24 | |
| 25 | function 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 | |
| 35 | export { |
| 36 | protocols, |
no test coverage detected