Message deletion fix

pull/790/head
Vincent 5 years ago
parent b4c6c37b16
commit c5ff70c970

@ -1282,8 +1282,9 @@
}, },
deleteSelectedMessages() { deleteSelectedMessages() {
const ourPubkey = textsecure.storage.user.getNumber();
const selected = Array.from(this.model.selectedMessages); const selected = Array.from(this.model.selectedMessages);
const isModerator = this.model.isModerator(this.model.OUR_NUMBER); const isModerator = this.model.isModerator(ourPubkey);
const isAllOurs = selected.every( const isAllOurs = selected.every(
message => message.attributes.source === message.OUR_NUMBER message => message.attributes.source === message.OUR_NUMBER
); );

@ -671,7 +671,7 @@
.module-last-seen-indicator__bar { .module-last-seen-indicator__bar {
background-color: $color-light-60; background-color: $color-light-60;
width: 100%; width: 100%;
height: 4px; height: 2px;
} }
.module-last-seen-indicator__text { .module-last-seen-indicator__text {

@ -116,7 +116,7 @@ body.dark-theme {
} }
.module-last-seen-indicator__bar { .module-last-seen-indicator__bar {
background-color: $color-dark-30; background-color: #353535;
} }
.module-last-seen-indicator__text { .module-last-seen-indicator__text {

Loading…
Cancel
Save