Skip to content

Add support for draft messages - #7429

Merged
abnegate merged 4 commits into
1.5.xfrom
feat-draft-messages
Jan 19, 2024
Merged

abnegate merged 4 commits into
1.5.xfrom
feat-draft-messages

Conversation

@stnguyen90

Copy link
Copy Markdown
Contributor

What does this PR do?

Update create and update message APIs to support draft messages.

Test Plan

Manual

Related PRs and Issues

None

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90 stnguyen90 mentioned this pull request Jan 16, 2024
2 tasks
@stnguyen90
stnguyen90 marked this pull request as ready for review January 18, 2024 01:38
Comment thread src/Appwrite/Enum/MessageStatus.php Outdated
Comment on lines +5 to +29
// TODO: Convert to backed enum after upgrading to PHP 8.1
// enum MessageStatus: string
// {
// /**
// * Message that is not ready to be sent
// */
// case Draft = 'draft';
// /**
// * Scheduled to be sent for a later time
// */
// case Scheduled = 'scheduled';
// /**
// * Picked up by the worker and starting to send
// */
// case Processing = 'processing';
// /**
// * Sent without errors
// */
// case Sent = 'sent';
// /**
// * Sent with some errors
// */
// case Failed = 'failed';
// }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's remove the comment and add the code back once on 8.2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed

@stnguyen90
stnguyen90 requested a review from abnegate January 19, 2024 01:54
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