Fix notification issue

pull/1/head
yflory 2019-10-28 17:40:26 +01:00
parent b04d8c0821
commit f6bbe70f3c
1 changed files with 2 additions and 3 deletions

View File

@ -439,14 +439,13 @@ define([
});
if (!teamId) { return void cb(true); }
var dismiss = false;
try {
var module = ctx.store.modules['team'];
// changeMyRights returns true if we can't change our rights
dismiss = module.changeMyRights(teamId, content.state, content.teamData);
module.changeMyRights(teamId, content.state, content.teamData);
} catch (e) { console.error(e); }
cb(dismiss);
cb(true);
};