Fix highlighting single-grouped item

Hide pinned message unpin button if many
This commit is contained in:
Eduard Kuzmenko 2020-12-11 15:53:59 +02:00
parent 394e744ef1
commit 78bc6aefba
2 changed files with 5 additions and 1 deletions

View File

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

View File

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