-
-
Notifications
You must be signed in to change notification settings - Fork 833
Make CallHandler
more EventEmitter
y
#6704
Make CallHandler
more EventEmitter
y
#6704
Conversation
977df3e
to
cd4ca57
Compare
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
…Number() public instead of using the dispatcher Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
959ebd0
to
b8dcf1c
Compare
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.
This looks fine, though I believe there's some hidden requirements for stuff in this area so going to ask for a second opinion review.
Thanks for taking a look at this! Down with the dispatcher!
…r-emittery Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@turt2live, let me know if there is someone I can talk to about this, in case there are some internal requirements |
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
…r-emittery Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
While I'm not necessarily saying the dispatcher is the best thing, it's still nominally our way of handling actions from the user, so is there a reason to call the methods directly for thing like placing / answering / hanging up calls rather than go via the dispatcher? alsoa cc @robertlong as this is probably going to cause conflicts with your stuff |
As I said in the description:
I generally find this much easier to work with, navigating the dispatches just feels much harder and this feels much cleaner. It also cuts down the number of lines |
I see this a bit from the other perspective, why would you want to use the dispatcher for this :p |
OK, but I think this is something we need to coordinate on across the app. I'm not really a fan of the dispatcher either, but if we're going to stop using it we should decide to do so in general rather than have some bits of the app using it and some not. |
I definitely agree though I would say we already are in a state where parts of the app use and other parts don't... Is there anything I can do to help this..? |
I'll ask around & see what people think |
Thank you! |
…r-emittery Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
…r-emittery Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Well, nobody seemed to object to going this way so let's do it. Let's merge this post RC. |
…om-alias * origin/develop: (29 commits) Tweak roving tab index focus behaviour (#7254) Fix textual message stripping new line (#7239) Fix broken i18n in Forgot & Change password (#7252) Fix setBotPower to not use `.content` (#7179) Break long words in pinned messages to prevent overflow (#7251) Send read receipts for events in thread's timeline (#7229) Autofocus device panel entry when renaming device (#7249) Fix user menu bottom stroke (#7248) Disallow sending empty feedbacks (#7240) Fix wrongly sized default sub-space icons in space panel (#7243) Hide clear cache and reload button if crash is before client init (#7242) Don't show edit button for hidden edit events (#7226) Update Space Panel scrollable region (#7245) Replace breadcrumbs with recently viewed menu (#7073) Fix automatic space switching wrongly going via Home for room aliases (#7247) Make e2e tests pass in CI by using an older Synapse version (#7246) Make `CallHandler` more `EventEmitter`y (#6704) Fix links being parsed as markdown links improperly (#7200) Tweaks to informational architecture 1.1 (#7052) Upgrade allchange to 1.0.6 (#7238) ...
Fixes element-hq/element-web#18812
Type: task
For the reviewer: please review carefully as this could lead to regressions. Also, this should be reviewable commit-by-commit
This is more TypeScript friendly since it's easier to type than the dispatcher actions. It's easier to read, imo and quite a bit shorter. It should also theoretically be better for performance but it's not like that would be noticeable :D
This change is marked as an internal change (Task), so will not be included in the changelog.
Preview: https://61a0f0ec203e4619c6da8a42--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.