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

Reset chat history position #109

Merged
merged 1 commit into from
Jan 12, 2025
Merged

Conversation

Deewarz
Copy link
Contributor

@Deewarz Deewarz commented Jan 11, 2025

When a user enters multiple messages in chat, they are added to a history.
The user has the possibility to reopen the chat and browse the messages he has sent.

Suppose the user goes back two places in their history and then closes the chat or sends a message (which closes the chat).
If the user reopens their chat, they will resume browsing their history at position -2 instead of starting from the last message sent.

This PR will fix the issue.

@Deewarz Deewarz requested review from Segfaultd and zpl-zak January 11, 2025 22:14
@Deewarz Deewarz self-assigned this Jan 11, 2025
@Segfaultd Segfaultd merged commit 34b9bf2 into master Jan 12, 2025
1 check passed
@Segfaultd Segfaultd deleted the bug/reset-chat-history-position branch January 12, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants