Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep suggesting index on incoming message #255

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Keep suggesting index on incoming message #255

merged 1 commit into from
Jun 24, 2024

Conversation

easafe
Copy link
Member

@easafe easafe commented Jun 24, 2024

Fixes #254

@easafe easafe requested a review from Iizuki June 24, 2024 08:20
@easafe easafe merged commit 2af910c into master Jun 24, 2024
1 check passed
@easafe easafe deleted the reset branch June 24, 2024 08:43
@Iizuki
Copy link
Collaborator

Iizuki commented Jun 24, 2024

So it removes the sender from suggestions when a new message arrives (makes sense), but this also updated the currently shown suggestion regardless of whether it was a from someone in the previous suggestions?

@easafe
Copy link
Member Author

easafe commented Jun 24, 2024

The fix is that if whoever sent the message is not removed from the suggestions then keep it as it is

@easafe
Copy link
Member Author

easafe commented Jun 24, 2024

(it being the suggestion index)

@Iizuki
Copy link
Collaborator

Iizuki commented Jun 24, 2024

Seems good.

In the less likely event that it was someone from the suggestions, but not the one you're currently staring, it will still jump? (or even in the case that it was the person you're staring, but then it makes sense anyway)

@easafe
Copy link
Member Author

easafe commented Jun 24, 2024

it should move only if the index matches

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.

Suggestions resets to the first position when a message is received
2 participants