Merge pull request #1410 from Bilb/fix-moderator-crown

fix moderator crown only for moderator
pull/1417/head
Audric Ackermann 5 years ago committed by GitHub
commit 3955c3e501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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