Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CallHandler more EventEmittery #18823

Conversation

SimonBrandner
Copy link
Contributor

@SimonBrandner SimonBrandner commented Aug 28, 2021

Requires matrix-org/matrix-react-sdk#6704
Type: task


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

@github-actions github-actions bot added the T-Task Tasks for the team like planning label Aug 28, 2021
@SimonBrandner SimonBrandner force-pushed the task/call-handler-emittery branch from 54ac9ac to b7ff595 Compare August 28, 2021 10:55
@SimonBrandner SimonBrandner marked this pull request as ready for review August 28, 2021 15:06
@SimonBrandner SimonBrandner requested a review from a team as a code owner August 28, 2021 15:06
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

This side lgtm

@SimonBrandner
Copy link
Contributor Author

Closing as using the CallHandler here causes issues and it will be easier to use the dispatcher for this specific thing

@SimonBrandner SimonBrandner deleted the task/call-handler-emittery branch September 11, 2021 09:45
SimonBrandner added a commit to SimonBrandner/matrix-react-sdk that referenced this pull request Sep 11, 2021
dbkr pushed a commit to matrix-org/matrix-react-sdk that referenced this pull request Nov 30, 2021
* sharedInstance() -> instance

Signed-off-by: Šimon Brandner <[email protected]>

* Use CallState event instead of dispatching

Signed-off-by: Šimon Brandner <[email protected]>

* Simplifie some code

Signed-off-by: Šimon Brandner <[email protected]>

* Use a method to start a call instead of the dispatcher

Signed-off-by: Šimon Brandner <[email protected]>

* Use a method instead of place_conference_call

Signed-off-by: Šimon Brandner <[email protected]>

* Make terminateCallApp() and hangupCallApp() public

Signed-off-by: Šimon Brandner <[email protected]>

* Use hangupAllCalls() instead of the dispatcher

Signed-off-by: Šimon Brandner <[email protected]>

* Make dialNumber(), startTransferToMatrixID() and startTransferToPhoneNumber() public instead of using the dispatcher

Signed-off-by: Šimon Brandner <[email protected]>

* Use answerCall() instead of using the dispatcher

Signed-off-by: Šimon Brandner <[email protected]>

* Use hangupOrReject() instead of the dispatcher

Signed-off-by: Šimon Brandner <[email protected]>

* Update docs

Signed-off-by: Šimon Brandner <[email protected]>

* Improve TS

Signed-off-by: Šimon Brandner <[email protected]>

* Dispatch call_state, see element-hq/element-web#18823 (comment)

Signed-off-by: Šimon Brandner <[email protected]>

* Add missing import

Signed-off-by: Šimon Brandner <[email protected]>
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.

2 participants