Skip to content

Conversation

@igorovh
Copy link
Member

@igorovh igorovh commented Jul 23, 2025

Description by Callstackai

This PR fixes the handling of message menu links and their selection in the chat message menu module.

Diagrams of code changes
sequenceDiagram
    participant User
    participant ChatMessage
    participant ChatMessageMenuModule
    participant EventEmitter

    User->>ChatMessage: Right clicks message
    Note over ChatMessage: Check if text is selected
    Note over ChatMessage: Check if clicked element is not blocked (a, img)
    
    ChatMessage->>ChatMessageMenuModule: Trigger contextmenu event
    ChatMessageMenuModule->>EventEmitter: Emit "twitch:messageMenu"
    Note over EventEmitter: Send menu options with<br/>cursor coordinates (x,y)
Loading
Files Changed
FileSummary
src/platforms/kick/modules/settings/settings.module.tsxCommented out the chat message menu settings to disable the feature.
src/platforms/twitch/modules/chat-message-menu/chat-message-menu.module.tsxUpdated the message handling to prevent context menu from appearing on certain tags and fixed event handling.

@igorovh igorovh merged commit 2556f23 into master Jul 23, 2025
2 checks passed
@igorovh igorovh deleted the fix/ignore-message-menu-links-and-selection branch July 23, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants