Skip to content

Commit

Permalink
fix(chat): Render groups with mention chips
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Apr 26, 2023
1 parent e909e4c commit 25ffdcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export default {
Object.keys(this.messageParameters).forEach(function(p) {
const type = this.messageParameters[p].type
const mimetype = this.messageParameters[p].mimetype
if (type === 'user' || type === 'call' || type === 'guest' || type === 'group') {
if (type === 'user' || type === 'call' || type === 'guest' || type === 'user-group' || type === 'group') {
richParameters[p] = {
component: Mention,
props: this.messageParameters[p],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default {
return this.type === 'call'
},
isGroupMention() {
return this.type === 'group'
return this.type === 'user-group' || this.type === 'group'
},
isMentionToGuest() {
return this.type === 'guest'
Expand Down

0 comments on commit 25ffdcb

Please sign in to comment.