If message uuid is set as system append as user 'system message' #9985 (#9988)

This commit is contained in:
Ignacio Alvarez
2018-02-19 14:51:43 -03:00
committed by Matteo Pagliazzi
parent faa068f690
commit 1c1b050e2c

View File

@@ -38,7 +38,7 @@ export default {
}, },
mounted () { mounted () {
this.$root.$on('habitica::copy-as-todo', message => { this.$root.$on('habitica::copy-as-todo', message => {
const notes = `${message.user} wrote in [${this.groupName}](${baseUrl}/groups/guild/${this.groupId})`; const notes = `${message.user || 'system message'}${message.user ? ' wrote' : ''} in [${this.groupName}](${baseUrl}/groups/guild/${this.groupId})`;
const newTask = { const newTask = {
text: message.text, text: message.text,
type: 'todo', type: 'todo',