(str: unknown)
| 49 | } |
| 50 | |
| 51 | export function isLocalMessageId(str: unknown): boolean { |
| 52 | if (typeof str !== 'string') { |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | return str.startsWith('localMessage_'); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * 是一个MongoDB的objectId |
no outgoing calls
no test coverage detected