feat: Add reply to message - #103
Open
Eelyousha wants to merge 2 commits into
Open
Conversation
Signed-off-by: Ilya <qubelord777@gmail.com>
Signed-off-by: Ilya <qubelord777@gmail.com>
julez-dev
requested changes
Jul 21, 2026
julez-dev
left a comment
Owner
There was a problem hiding this comment.
Nice, feature, have some findings.
Also I think a future UX improvement for this feature could be a UI indicator of the current message user is replying to, which will also make it clear what state the input is in. Similar to how twitch displays it.
Its up to you if you want to create a new issue for that or implement that feature inside of this.
Thanks!
| userID := t.account.ID | ||
|
|
||
| replyTo := t.replyToMessageID | ||
| t.replyToMessageID = "" |
Owner
There was a problem hiding this comment.
The replyToMessageID is not cleared when command branch is reached, resulting in unexpected reply message after using command.
To reproduce:
alt+r on message -> use command (f.e /emotes) -> go into insert mode again (no reply) -> type message -> message is still a reply to the original message alt+r was pressed on
| } else { | ||
| t.state = insertMode | ||
| } | ||
| log.Info().Str("messageID", msg.ID).Str("messageText", msg.Message).Msg("Message info") |
Comment on lines
+1491
to
+1496
| // Get message and IDs from PrivateMessage | ||
| // | ||
| // func (t *broadcastTab) handleResponseToMessage() tea.Cmd { | ||
| // msg, ok := entry.Event.message.(*twitchirc.PrivateMessage) | ||
|
|
||
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added default "reply to message", for now, in app it looks like mention (same as @user), but in Twitch chat looks totally like "true" reply. For feat issue #100