(updater: (prev: AttributionState) => AttributionState)
| 2453 | }); |
| 2454 | }, |
| 2455 | updateAttributionState(updater: (prev: AttributionState) => AttributionState) { |
| 2456 | setAppState(prev => { |
| 2457 | const updated = updater(prev.attribution); |
| 2458 | if (updated === prev.attribution) return prev; |
| 2459 | return { |
| 2460 | ...prev, |
| 2461 | attribution: updated |
| 2462 | }; |
| 2463 | }); |
| 2464 | }, |
| 2465 | openMessageSelector: () => { |
| 2466 | if (!disabled) { |
| 2467 | setIsMessageSelectorVisible(true); |
nothing calls this directly
no outgoing calls
no test coverage detected