Skip to content

Deduplicate code across functions that populate small state event views#53

Merged
kevinaboos merged 1 commit into
project-robius:mainfrom
kevinaboos:dedup_populate_view_code
Feb 26, 2024
Merged

Deduplicate code across functions that populate small state event views#53
kevinaboos merged 1 commit into
project-robius:mainfrom
kevinaboos:dedup_populate_view_code

Conversation

@kevinaboos

Copy link
Copy Markdown
Member

Fixes #48.

This makes code simpler in the timeline drawing logic functions:

  • fn populate_redacted_message_view()
  • fn populate_membership_change_view()
  • fn populate_profile_change_view()
  • fn populate_other_state_view()

Fixes project-robius#48.

This makes code simpler in the timeline drawing logic functions:
* `fn populate_redacted_message_view()`
* `fn populate_membership_change_view()`
* `fn populate_profile_change_view()`
* `fn populate_other_state_view()`
@kevinaboos
kevinaboos merged commit b79cb92 into project-robius:main Feb 26, 2024
@kevinaboos
kevinaboos deleted the dedup_populate_view_code branch February 26, 2024 23:10
tyreseluo pushed a commit to tyreseluo/robrix that referenced this pull request Apr 11, 2026
- Replace self.redraw(cx) with redraw_timeline_list() that only redraws
  the timeline PortalList, skipping input bar and typing notice
- Skip redraw entirely when streaming messages are not visible in viewport
- Apply same optimization to streaming timeout handler

Closes project-robius#53
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.

Remove code duplication across populate_*_view() functions

1 participant