mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +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 = {}) {
|
export function chatDefaults (msg, user, info = {}) {
|
||||||
let message = {
|
let message = {
|
||||||
id: shared.uuid(),
|
id: shared.uuid(),
|
||||||
|
|||||||
Reference in New Issue
Block a user