(msg: Api.Message, enabled: boolean)
| 630 | } |
| 631 | |
| 632 | function emojiStatusIdFromEntity(entity: any): string | undefined { |
| 633 | const status = entity?.emojiStatus ?? entity?.emoji_status; |
| 634 | if (!status) return undefined; |
| 635 | // If status is a primitive (bigint, number, string), treat it as the direct document ID |
| 636 | if (typeof status !== "object") { |
| 637 | const id = status?.value ?? status; |
| 638 | return id ? String(id) : undefined; |
no test coverage detected