FIX: ensures add/remove btn is shown if you can only invite (#7185)
This commit is contained in:
parent
f7875eaeb7
commit
e76b598e0f
|
@ -154,7 +154,11 @@ export default createWidget("private-message-map", {
|
||||||
const result = [h(`div.participants${hideNamesClass}`, participants)];
|
const result = [h(`div.participants${hideNamesClass}`, participants)];
|
||||||
const controls = [];
|
const controls = [];
|
||||||
|
|
||||||
if (attrs.canRemoveAllowedUsers || attrs.canRemoveSelfId) {
|
if (
|
||||||
|
attrs.canInvite ||
|
||||||
|
attrs.canRemoveAllowedUsers ||
|
||||||
|
attrs.canRemoveSelfId
|
||||||
|
) {
|
||||||
controls.push(
|
controls.push(
|
||||||
this.attach("button", {
|
this.attach("button", {
|
||||||
action: "toggleEditing",
|
action: "toggleEditing",
|
||||||
|
|
Loading…
Reference in New Issue