(item)
| 4084 | } |
| 4085 | |
| 4086 | function isUserVisibleItem(item) { |
| 4087 | const itemType = normalizeEventItemType(item); |
| 4088 | if (itemType.includes('user')) { |
| 4089 | return true; |
| 4090 | } |
| 4091 | return itemType === 'message' && normalizeEventItemRole(item) === 'user'; |
| 4092 | } |
| 4093 | |
| 4094 | function isAgentDeltaNotificationMethod(method) { |
| 4095 | const normalized = String(method ?? '').replace(/[^a-z]/gi, '').toLowerCase(); |
no test coverage detected