v3 client: fix ability to send cards

This commit is contained in:
Matteo Pagliazzi
2016-05-17 17:35:49 +02:00
parent bb6809fd6b
commit d293b2d6ee
3 changed files with 23 additions and 6 deletions

View File

@@ -327,8 +327,9 @@ api.seenChat = {
let validationErrors = req.validationErrors();
if (validationErrors) throw validationErrors;
let group = await Group.getGroup({user, groupId});
if (!group) throw new NotFound(res.t('groupNotFound'));
// Do not validate group existence, it doesn't really matter and make it works if the group gets deleted
// let group = await Group.getGroup({user, groupId});
// if (!group) throw new NotFound(res.t('groupNotFound'));
let update = {$unset: {}};
update.$unset[`newMessages.${groupId}`] = true;