update counter when user navigates to /unread
fix new topic alert on /unread
moved unread code from footer to unread
This commit is contained in:
Barış Soner Uşaklı
2018-12-12 19:43:35 -05:00
parent 2f57a4b9a6
commit f103390aa5
6 changed files with 98 additions and 97 deletions

View File

@@ -77,7 +77,7 @@ module.exports = function (Groups) {
};
function inviteOrRequestMembership(groupName, uid, type, callback) {
if (!parseInt(uid, 10)) {
if (!(parseInt(uid, 10) > 0)) {
return callback(new Error('[[error:not-logged-in]]'));
}
var hookName = type === 'invite' ? 'action:group.inviteMember' : 'action:group.requestMembership';