mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Added comment explaining the new info object
This commit is contained in:
@@ -507,6 +507,8 @@ schema.methods.isMember = function isGroupMember (user) {
|
||||
}
|
||||
};
|
||||
|
||||
// info: An object containing relevant information about a system message,
|
||||
// so it can be translated to any language.
|
||||
export function chatDefaults (msg, user, info = {}) {
|
||||
let message = {
|
||||
id: shared.uuid(),
|
||||
|
||||
Reference in New Issue
Block a user