-
Notifications
You must be signed in to change notification settings - Fork 5
Adds ability to query messages and execute mark as read functionality. #124
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
Conversation
|
Need docs and changelog update. |
src/collections/messages.coffee
Outdated
| @loadItems 'message', params, callback | ||
|
|
||
| exports.markMessageAsRead = (id, callback) -> | ||
| params = id: id |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added!
|
Docs are updated. |
bd681a7 to
fb8ee40
Compare
|
@matthopson Added messageData endpoint too f5e4b0d |
docs/collections/messages.md
Outdated
|
|
||
| ## Methods | ||
|
|
||
| - [loadMessages](#loadMessage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anchor missing s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1d51221 to
c25b174
Compare
|
@matthopson Updated |
src/collections/messages.coffee
Outdated
| else if @isId params | ||
| params = id: params | ||
| else | ||
| throw new TSArgsError 'teamsnap.markMessageAsRead', 'a message Id or message object must be provided' |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hows this? 1051f52
|
👍 Looks good |
1051f52 to
946cab1
Compare
|
@matthopson This is the PR, when you get a chance to merge it/release :) Thanks! |
|
If it's ready you can go ahead and merge. I'll follow up with the npm publish after. |
No description provided.