mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
fix(chat): correctly hide flag counts from non-moderators
This commit is contained in:
parent
3470382528
commit
96a8c1a41c
1 changed files with 1 additions and 0 deletions
|
|
@ -403,6 +403,7 @@ schema.statics.toJSONCleanChat = async function groupToJSONCleanChat (group, use
|
|||
if (user._id !== chatMsg.uuid && chatMsg.flagCount >= CHAT_FLAG_LIMIT_FOR_HIDING) {
|
||||
return undefined;
|
||||
}
|
||||
chatMsg.flagCount = 0;
|
||||
}
|
||||
|
||||
return chatMsg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue