Skip to content

Comments

Encode subject#125

Open
fansilva1991 wants to merge 2 commits intotschoffelen:masterfrom
fansilva1991:encode-subject
Open

Encode subject#125
fansilva1991 wants to merge 2 commits intotschoffelen:masterfrom
fansilva1991:encode-subject

Conversation

@fansilva1991
Copy link

Description

This PR adds the ability to apply encodeURIComponent to the subject.

Related to issue:

#118

@tschoffelen
Copy link
Owner

Thanks for opening this!

Shouldn't we make this a default behaviour for the particular situation addressed in #118? E.g. always URL-encode when on iOS and the default client is selected?

Of course that is a breaking change, but I'm happy to release that as a v2 of the library, together with some other cleanup.

@hazyikmis
Copy link

Shouldn't we add this prop (encodeSubject) also to the ComposeOptions type defined in the index.d.ts.
encodeBody is also missing.

@tschoffelen tschoffelen self-assigned this Mar 11, 2025
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.

3 participants