+ private initTextValue () {
+ if (this.textValue) {
+ this.patchTextValue(this.textValue, this.focusOnInit)
+ return
+ }
+
+ if (this.parentComment) {
+ const mentions = this.parentComments
+ .filter(c => c.account && c.account.id !== this.user.account.id) // Don't add mention of ourselves
+ .map(c => '@' + c.by)
+
+ const mentionsSet = new Set(mentions)
+ const mentionsText = Array.from(mentionsSet).join(' ') + ' '
+
+ this.patchTextValue(mentionsText, this.focusOnInit)
+ }
+ }
+