Locate the channel a stored mock event lives in (reactions carry no channel arg).
(eventId: string)
| 7174 | |
| 7175 | /** Locate the channel a stored mock event lives in (reactions carry no channel arg). */ |
| 7176 | function findMockEventChannel(eventId: string): string | undefined { |
| 7177 | for (const [channelId, events] of mockMessages) { |
| 7178 | if (events.some((event) => event.id === eventId)) { |
| 7179 | return channelId; |
| 7180 | } |
| 7181 | } |
| 7182 | return undefined; |
| 7183 | } |
| 7184 | |
| 7185 | /** |
| 7186 | * Mock the `add_reaction` Tauri command. Mirrors the real Rust command: a |
no outgoing calls
no test coverage detected