Skip to content

Conversation

@dbkr
Copy link
Member

@dbkr dbkr commented Nov 4, 2022

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

t3chguy and others added 23 commits November 3, 2022 11:45
Co-authored-by: Faye Duxovni <fayed@matrix.org>
# Conflicts:
#	.github/workflows/sonarqube.yml
Add checks to `addEventToTimeline` as extra insurance that we don't mix events in the wrong timelines (main timeline vs thread timeline).

Split out from #2521

Previously, we just relied on the callers to make sure they're doing the right thing and since it's easy to get it wrong, we mixed and bugs happened.

Call stacks for how events get added to a timeline:

 - `TimelineSet.addEventsToTimeline` -> `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
 - `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
 - `TimelineSet.addLiveEvent` -> `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
@dbkr dbkr added the T-Task Tasks for the team like planning label Nov 4, 2022
@dbkr dbkr requested review from a team as code owners November 4, 2022 14:06
@dbkr dbkr requested review from germain-gg and richvdh and removed request for a team November 4, 2022 14:06
Copy link
Contributor

@SimonBrandner SimonBrandner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a merge

@dbkr dbkr merged commit c8dc71e into robertlong/group-call Nov 4, 2022
@dbkr dbkr deleted the dbkr/gcmerge_20221104 branch November 4, 2022 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants