Skip to content

Conversation

@randy-girard
Copy link
Contributor

No description provided.

@amberwebb
Copy link
Contributor

Need docs and changelog update.

@loadItems 'message', params, callback

exports.markMessageAsRead = (id, callback) ->
params = id: id
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be nice to be able to use a message object as well as an ID, since that's a convention we've used quite a bit. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added!

@randy-girard
Copy link
Contributor Author

Docs are updated.

@randy-girard randy-girard force-pushed the message-mark-as-read branch from bd681a7 to fb8ee40 Compare March 22, 2016 14:49
@randy-girard
Copy link
Contributor Author

@matthopson Added messageData endpoint too f5e4b0d


## Methods

- [loadMessages](#loadMessage)
Copy link
Contributor

Choose a reason for hiding this comment

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

anchor missing s

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@randy-girard randy-girard force-pushed the message-mark-as-read branch from 1d51221 to c25b174 Compare March 22, 2016 16:49
@randy-girard
Copy link
Contributor Author

@matthopson Updated

else if @isId params
params = id: params
else
throw new TSArgsError 'teamsnap.markMessageAsRead', 'a message Id or message object must be provided'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's the capital I that is most bothering me - and maybe wrap in backtics.

See:

throw new TSArgsError 'teamsnap.saveContact', "`contact` must be provided"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hows this? 1051f52

@matthopson
Copy link
Contributor

👍 Looks good

@randy-girard randy-girard force-pushed the message-mark-as-read branch from 1051f52 to 946cab1 Compare March 23, 2016 19:12
@randy-girard
Copy link
Contributor Author

@matthopson This is the PR, when you get a chance to merge it/release :) Thanks!

@matthopson
Copy link
Contributor

If it's ready you can go ahead and merge. I'll follow up with the npm publish after.

@randy-girard randy-girard merged commit 437dcd2 into master Mar 24, 2016
@randy-girard randy-girard deleted the message-mark-as-read branch March 24, 2016 14:35
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