(messageIDs: $ReadOnlyArray<?string>)
| 35 | } |
| 36 | |
| 37 | function findMessageIDMaxLength(messageIDs: $ReadOnlyArray<?string>): number { |
| 38 | let result = 0; |
| 39 | for (const id of messageIDs) { |
| 40 | if (!id || id.startsWith(localIDPrefix)) { |
| 41 | continue; |
| 42 | } |
| 43 | |
| 44 | result = Math.max(result, id.length); |
| 45 | } |
| 46 | return result; |
| 47 | } |
| 48 | |
| 49 | function extendMessageID(id: ?string, length: number): ?string { |
| 50 | if (!id || id.startsWith(localIDPrefix)) { |
no outgoing calls
no test coverage detected