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

Support sending delayed events (Futures) / MSC4157 #90

Merged
merged 15 commits into from
Jul 16, 2024
Merged

Conversation

AndrewFerr
Copy link
Member

Signed-off-by: Andrew Ferrazzutti [email protected]

src/ClientWidgetApi.ts Outdated Show resolved Hide resolved
@toger5
Copy link
Contributor

toger5 commented Jul 4, 2024

@AndrewFerr Thanks for the quick implementation update to the MSC change we discussed!

Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

Looks good.
We are lacking tests.
I think the most important piece to be tested is the handleSendEvent call from the ClientWidgetApi.

I also added a very optional comment on the code style of the stacked if.

Take this as a proposal only (not even sure if it would be better or if I just would prefer it)

src/ClientWidgetApi.ts Outdated Show resolved Hide resolved
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 10, 2024
@AndrewFerr AndrewFerr changed the title Support sending delayed events (Futures) / MSC4140 Support sending delayed events (Futures) / MSC4157 Jul 10, 2024
@AndrewFerr AndrewFerr marked this pull request as ready for review July 10, 2024 22:37
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 11, 2024
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 12, 2024
@AndrewFerr
Copy link
Member Author

The latest commit adds tests for sending futures (and non-future events too, which never had tests), so this should be good for now.

Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@AndrewFerr AndrewFerr merged commit ac09799 into master Jul 16, 2024
1 check passed
@AndrewFerr AndrewFerr deleted the af/msc4140 branch July 16, 2024 12:51
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 17, 2024
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 26, 2024
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 26, 2024
AndrewFerr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants