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

Expose Msg attachments fields #63

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Conversation

dhia-gharsallaoui
Copy link
Contributor

This PR introduces a couple of new methods on the Msg. This will help the Msg.Middleware to deal with Msg attachments.

To get the Msg attachments, we can now use the Msg.GetAttachments() methods to get the list of currently assigned attachments to the Msg.

To set the Msg attachments, we can now use the Msg.SetAttachments() methods to set a list of *File as Msg attachments.

@dhia-gharsallaoui
Copy link
Contributor Author

@wneessen feel free to check and review.

@wneessen wneessen added enhancement New feature or request hacktoberfest PRs are requested to be eligible to participate in Hacktoberfest hacktoberfest-accepted PR has been accepted to participate in Hacktoberfest labels Oct 12, 2022
@wneessen wneessen self-requested a review October 12, 2022 12:36
@wneessen wneessen merged commit 4264923 into wneessen:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest PRs are requested to be eligible to participate in Hacktoberfest hacktoberfest-accepted PR has been accepted to participate in Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants