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

feat : Add initial SDK support for Rich Messaging (ButtonActions as Attachment) #203

Merged
merged 2 commits into from
Aug 23, 2018

Conversation

@CLAassistant
Copy link

CLAassistant commented Jul 30, 2018

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@rafaelks
Copy link
Contributor

@Shailesh351 Could you please sign the CLA so we can review this PR?

if (it is ButtonAction) {
writer.beginObject()
writer.name("type").value(it.type)
it.text?.run { writer.name("text").value(it.text) }
Copy link
Contributor

Choose a reason for hiding this comment

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

If the values can be nullable, you can just write null to the JSON.

Or let's use .let to keep consistency with the rest of the file.
it.text?.let { writer.name("text").value(it) }

@Shailesh351
Copy link
Contributor Author

@luciofm Updated PR with requested changes. Please review.

Thanks!!

@luciofm luciofm merged commit db3f948 into RocketChat:develop Aug 23, 2018
@luciofm
Copy link
Contributor

luciofm commented Aug 23, 2018

merged with some fixes in indentation

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.

4 participants