FIX: ensures add/remove btn is shown if you can only invite (#7185)

This commit is contained in:
Joffrey JAFFEUX 2019-03-15 20:20:42 +01:00 committed by GitHub
parent f7875eaeb7
commit e76b598e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,11 @@ export default createWidget("private-message-map", {
const result = [h(`div.participants${hideNamesClass}`, participants)];
const controls = [];
if (attrs.canRemoveAllowedUsers || attrs.canRemoveSelfId) {
if (
attrs.canInvite ||
attrs.canRemoveAllowedUsers ||
attrs.canRemoveSelfId
) {
controls.push(
this.attach("button", {
action: "toggleEditing",