Browse Source

Fix highlighting single-grouped item

Hide pinned message unpin button if many
master
Eduard Kuzmenko 4 years ago
parent
commit
571eb3a4bd
  1. 2
      src/components/chat/bubbles.ts
  2. 4
      src/scss/partials/_chatPinned.scss

2
src/components/chat/bubbles.ts

@ -643,7 +643,7 @@ export default class ChatBubbles { @@ -643,7 +643,7 @@ export default class ChatBubbles {
public getMountedBubble(mid: number) {
const message = this.appMessagesManager.getMessage(mid);
if(message.grouped_id) {
if(message.grouped_id && this.appMessagesManager.getMidsByAlbum(message.grouped_id).length > 1) {
const a = this.getGroupedBubble(message.grouped_id);
if(a) {
a.bubble = a.bubble.querySelector(`.document-container[data-mid="${mid}"]`) || a.bubble;

4
src/scss/partials/_chatPinned.scss

@ -342,6 +342,10 @@ @@ -342,6 +342,10 @@
}
&.is-many {
.pinned-message-close {
display: none;
}
&:not(.is-floating) {
.pinned-message-pinlist {
display: none;

Loading…
Cancel
Save