mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Claim task messages are now system messages (#8375)
This commit is contained in:
committed by
Sabe Jones
parent
f1b8bd80e7
commit
36d72f5f7a
@@ -99,6 +99,7 @@ describe('POST /tasks/:taskId', () => {
|
||||
let updateGroup = await user.get(`/groups/${guild._id}`);
|
||||
|
||||
expect(updateGroup.chat[0].text).to.equal(t('userIsClamingTask', {username: member.profile.name, task: task.text}));
|
||||
expect(updateGroup.chat[0].uuid).to.equal('system');
|
||||
});
|
||||
|
||||
it('assigns a task to a user', async () => {
|
||||
|
||||
@@ -126,7 +126,7 @@ 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, user);
|
||||
group.sendChat(message);
|
||||
}
|
||||
|
||||
let promises = [];
|
||||
|
||||
Reference in New Issue
Block a user