Updated references to hasModPerms to isModerator for code consistency

pull/652/head
Vince 6 years ago
parent 0643c6836c
commit 64996844ac

@ -614,7 +614,8 @@
// for the public group chat // for the public group chat
const conversation = this.getConversation(); const conversation = this.getConversation();
const isModerator = conversation && !!conversation.isModerator(this.OUR_NUMBER); const isModerator =
conversation && !!conversation.isModerator(this.OUR_NUMBER);
const convoId = conversation ? conversation.id : undefined; const convoId = conversation ? conversation.id : undefined;
const isGroup = !!conversation && !conversation.isPrivate(); const isGroup = !!conversation && !conversation.isPrivate();
@ -658,7 +659,7 @@
!this.get('isPublic') || !this.get('isPublic') ||
isModerator || isModerator ||
phoneNumber === this.OUR_NUMBER, phoneNumber === this.OUR_NUMBER,
isModerator: isModerator isModerator,
onCopyText: () => this.copyText(), onCopyText: () => this.copyText(),
onSelectMessage: () => this.selectMessage(), onSelectMessage: () => this.selectMessage(),

Loading…
Cancel
Save