(channel: RemoteChannel)
| 43 | |
| 44 | /** Each channel listens on its own code. */ |
| 45 | const codeFor = (channel: RemoteChannel) => |
| 46 | channel === 'telegram' ? SensorSettings.getTelegramCode() : SensorSettings.getWhitelistCode(); |
| 47 | |
| 48 | /** A wire message's text and images, whichever shape its content has. */ |
| 49 | function contentParts(content: WireMessage['content']): { text: string; images: string[] } { |
no test coverage detected