fix isAdmin to return the right value for closed groups

pull/1793/head
Brice-W 4 years ago
parent bfa68fc9b5
commit a6aed4d7d1

@ -1110,7 +1110,7 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
} }
public isAdmin(pubKey?: string) { public isAdmin(pubKey?: string) {
if (!this.isPublic()) { if (!this.isPublic() && !this.isGroup()) {
return false; return false;
} }
if (!pubKey) { if (!pubKey) {

Loading…
Cancel
Save