mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Missing message (user claim task)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user