Skip to content

Ensure that message details are only set for a drawn item once#593

Merged
kevinaboos merged 1 commit into
project-robius:mainfrom
kevinaboos:fix_message_details_setting
Oct 1, 2025
Merged

Ensure that message details are only set for a drawn item once#593
kevinaboos merged 1 commit into
project-robius:mainfrom
kevinaboos:fix_message_details_setting

Conversation

@kevinaboos
Copy link
Copy Markdown
Member

Recently, a minor bug snuck in where it was possible for a message item's widget to have incomplete MessageDetails, because the related event ID was not always calculated but was still being re-set for the message item when it did not need to be re-set.

Now we only set it once when the message content is first drawn, which is correct in all cases, and also more efficient!

Recently, a minor bug snuck in where it was possible for a message item's
widget to have incomplete `MessageDetails`, because the related event ID
was not always calculated but was still being re-set for the message item
when it did not need to be re-set.

Now we only set it once when the message *content* is first drawn,
which is correct in all cases, and also more efficient!
@kevinaboos kevinaboos merged commit 2ce56fd into project-robius:main Oct 1, 2025
11 checks passed
@kevinaboos kevinaboos deleted the fix_message_details_setting branch October 1, 2025 23:31
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.

1 participant