summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-07-18 13:06:25 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-07-18 13:06:25 -0500
commit66b45ed35c2bd3768dd479bdc3b0e9988de7825b (patch)
tree09b1a3c2756ceb98224bc8a1dd6f4e1732570e71 /client
parent34bd1e9c49c27bf112f02d6844e74101ab801f96 (diff)
downloadwekan-66b45ed35c2bd3768dd479bdc3b0e9988de7825b.tar.gz
wekan-66b45ed35c2bd3768dd479bdc3b0e9988de7825b.tar.bz2
wekan-66b45ed35c2bd3768dd479bdc3b0e9988de7825b.zip
Fix invites
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardsList.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index cc586b1f..b1371747 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -82,13 +82,13 @@ BlazeComponent.extendComponent({
},
'click .js-accept-invite'() {
const boardId = this.currentData()._id;
- Meteor.user().removeInvite(boardId);
+ Meteor.call('acceptInvite', boardId);
},
'click .js-decline-invite'() {
const boardId = this.currentData()._id;
Meteor.call('quitBoard', boardId, (err, ret) => {
if (!err && ret) {
- Meteor.user().removeInvite(boardId);
+ Meteor.call('acceptInvite', boardId);
FlowRouter.go('home');
}
});