(error: any)
| 1142 | |
| 1143 | const shouldFallbackToReplyOnEditError = (error: any): boolean => { |
| 1144 | const text = getEditErrorText(error); |
| 1145 | return ( |
| 1146 | text.includes("MESSAGE_ID_INVALID") || |
| 1147 | text.includes("MESSAGE_AUTHOR_REQUIRED") |
| 1148 | ); |
| 1149 | }; |
| 1150 | |
| 1151 | const getTopicRootId = (msg: Api.Message): number | undefined => { |
| 1152 | const typedMsg = msg as Api.Message & { |
| 1153 | replyTo?: { replyToTopId?: number; replyToMsgId?: number }; |
no test coverage detected