mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Missing message (user claim task)
This commit is contained in:
parent
2619ac37d9
commit
521a1e646d
2 changed files with 8 additions and 1 deletions
|
|
@ -199,7 +199,11 @@ api.assignTask = {
|
|||
// User is claiming the task
|
||||
if (user._id === assignedUserId) {
|
||||
let message = res.t('userIsClamingTask', {username: user.profile.name, task: task.text});
|
||||
group.sendChat(message);
|
||||
group.sendChat(message, null, null, {
|
||||
type: 'claim_task',
|
||||
user: user.profile.name,
|
||||
task: task.text,
|
||||
});
|
||||
}
|
||||
|
||||
let promises = [];
|
||||
|
|
|
|||
|
|
@ -371,6 +371,9 @@ function translateSystemMessages (group, user) {
|
|||
case 'tavern_boss_desperation':
|
||||
group.chat[i].text = `\`${shared.content.quests[group.chat[i].info.quest].boss.desperation.text(user.preferences.language)}\``;
|
||||
break;
|
||||
case 'claim_task':
|
||||
group.chat[i].text = `\`${shared.i18n.t('userIsClamingTask', {username: group.chat[i].info.user, task: group.chat[i].info.task}, user.preferences.language)}\``;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue