-
-
Notifications
You must be signed in to change notification settings - Fork 812
Pass around MatrixClients instead of using MatrixClientPeg #10984
Conversation
richvdh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split into sensible commits
sensible they may be, but 38, many of which are called "iterate", is too many for a plausible review
|
@richvdh fair, will split into 2/3 PRs |
|
Ah, half of the commits as from the previous PR in the chain and have 0 effect and need rebasing out, first commit of this PR really is at 131e0e8 |
ef65d25 to
2d5d2eb
Compare
2d5d2eb to
f5b6fe6
Compare
f5b6fe6 to
f840124
Compare
richvdh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
src/DeviceListener.ts
Outdated
| // The set of device IDs we're currently displaying toasts for | ||
| private displayingToastsForDeviceIds = new Set<string>(); | ||
| private running = false; | ||
| private runningClient?: MatrixClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh it feels a bit odd to conflate running and client: personally I would keep them separate, with a comment on client along the lines of "only defined when 'running' is true", even if, strictly speaking, running is then redundant.
| private displayingToastsForDeviceIds = new Set<string>(); | ||
| private runningClient?: MatrixClient; | ||
| private running = false; | ||
| private client?: MatrixClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment please. When is it set, when is it undefined
richvdh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Co-authored-by: Richard van der Hoff <[email protected]>
Requires #10905
Requires #11000
Split into sensible commits
This change is marked as an internal change (Task), so will not be included in the changelog.