mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
add GET group
This commit is contained in:
@@ -34,7 +34,7 @@ api.getChat = {
|
||||
|
||||
if (groupId === 'party' || user.party._id === groupId) {
|
||||
query = {type: 'party', _id: user.party._id};
|
||||
} else if (user.guilds.indexOf(groupId)) {
|
||||
} else if (user.guilds.indexOf(groupId) !== -1) {
|
||||
query = {type: 'guild', _id: groupId};
|
||||
} else {
|
||||
query = {type: 'guild', privacy: 'public', _id: groupId};
|
||||
|
||||
Reference in New Issue
Block a user