fix moderator crown only for moderator

pull/1410/head
Audric Ackermann 5 years ago
parent 2a02b5498b
commit c23231f25f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -567,8 +567,7 @@
const conversation = this.getConversation(); const conversation = this.getConversation();
const isModerator = const isModerator =
conversation && conversation && !!conversation.isModerator(phoneNumber);
!!conversation.isModerator(textsecure.storage.user.getNumber());
const convoId = conversation ? conversation.id : undefined; const convoId = conversation ? conversation.id : undefined;
const isGroup = !!conversation && !conversation.isPrivate(); const isGroup = !!conversation && !conversation.isPrivate();

Loading…
Cancel
Save