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

ChatMessages do not store view data anymore, hasToAnimate removed #3191

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

QThund
Copy link
Contributor

@QThund QThund commented Jan 23, 2025

What does this PR change?

The flag hasToAnimate was added to the ChatMessage structure as a way to know which messages were already animated in the chat window (a fade-in FX is used when a new message arrives) when using LoopListView2, which reuses ChatEntryViews through internal pools. It made no sense to store data strictly related to a view in the model. This workaround is not necessary anymore, ChatView is now in charge of knowing how many messages to animate.

The flag hasToAnimate was added to the ChatMessage structure as a way to know which messages were already animated in the chat window (a fade-in FX is used when a new message arrives) when using LoopListView2, which reuses ChatEntryViews through internal pools. It made no sense to store data strictly related to a view in the model. This workaround is not necessary anymore, ChatView is now in charge of knowing how many messages to animate.
@QThund QThund requested a review from fcolarich January 23, 2025 13:41
@QThund QThund self-assigned this Jan 23, 2025
Copy link
Contributor

badge

New build in progress, come back later!

@QThund QThund merged commit 221406c into feat/chat/chat_improvements_main Jan 23, 2025
3 of 5 checks passed
@QThund QThund deleted the feat/chat/unreadmessages branch January 23, 2025 13:50
@QThund QThund restored the feat/chat/unreadmessages branch January 23, 2025 13:50
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