Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Extract start DM logic to a helper file #8317

Merged
merged 2 commits into from
Apr 14, 2022
Merged

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Apr 14, 2022

In preparation for element-hq/element-web#21354 we need to be able to create a DM from that new dialog.
Extracting the logic to a helper function so that it can be re-used across multiple places in the project


This PR currently has no changelog labels, so will not be included in changelogs.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Preview: https://pr8317--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.

@germain-gg germain-gg requested a review from a team as a code owner April 14, 2022 08:52
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #8317 (d87315e) into develop (c35fc16) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #8317      +/-   ##
===========================================
- Coverage    29.83%   29.83%   -0.01%     
===========================================
  Files          874      874              
  Lines        50025    50027       +2     
  Branches     12729    12729              
===========================================
  Hits         14924    14924              
- Misses       35101    35103       +2     
Impacted Files Coverage Δ
src/RoomInvite.tsx 0.00% <ø> (ø)
src/components/views/dialogs/InviteDialog.tsx 0.55% <0.00%> (+0.04%) ⬆️
src/components/views/dialogs/InviteDialogTypes.ts 100.00% <ø> (ø)
src/utils/direct-messages.ts 16.66% <0.00%> (-61.91%) ⬇️

Copy link
Contributor

@kerryarchibald kerryarchibald left a comment

Choose a reason for hiding this comment

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

LGTM

@germain-gg germain-gg merged commit a63449a into develop Apr 14, 2022
@germain-gg germain-gg deleted the gsouquet/extract-dm-logic branch April 14, 2022 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants