Commit 1d9e1a62 authored by JC Brand's avatar JC Brand

Only show new moderator status when not already admin or owner

parent 14708af7
...@@ -721,8 +721,13 @@ converse.plugins.add('converse-muc-views', { ...@@ -721,8 +721,13 @@ converse.plugins.add('converse-muc-views', {
this.showChatEvent(__("%1$s has been muted", occupant.get('nick'))) this.showChatEvent(__("%1$s has been muted", occupant.get('nick')))
} }
if (occupant.get('role') === 'moderator') { if (occupant.get('role') === 'moderator') {
if (!['owner', 'admin'].includes(occupant.get('affiliation'))) {
// We only show this message if the user isn't already
// an admin or owner, otherwise this isn't new
// information.
this.showChatEvent(__("%1$s is now a moderator", occupant.get('nick'))) this.showChatEvent(__("%1$s is now a moderator", occupant.get('nick')))
} }
}
}, },
generateHeadingHTML () { generateHeadingHTML () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment