misc fixes

This commit is contained in:
Eduard Kuzmenko 2022-04-04 18:09:32 +03:00
parent c30aa30bd2
commit 4564aeef6a
3 changed files with 12 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export default class ChatAudio extends PinnedContainer {
}) => {
let title: string | HTMLElement, subtitle: string | HTMLElement | DocumentFragment;
if(doc.type === 'voice' || doc.type === 'round') {
title = new PeerTitle({peerId: message.fromId}).element;
title = new PeerTitle({peerId: message.fromId, fromName: message.fwd_from?.from_name}).element;
//subtitle = 'Voice message';
subtitle = formatFullSentTime(message.date);

View File

@ -242,6 +242,7 @@ export default class PeerProfile {
public setPeerStatus = (needClear = false) => {
const peerId = this.peerId;
this.element.classList.toggle('is-me', peerId === rootScope.myId);
if(!peerId || (rootScope.myId === peerId && this.isDialog)) return;
appImManager.setPeerStatus(this.peerId, this.subtitle, needClear, true, () => peerId === this.peerId, !this.isDialog);

View File

@ -127,6 +127,16 @@
}
}
.profile-content.is-me {
.profile-name {
margin-bottom: .9375rem;
}
.profile-subtitle {
display: none;
}
}
.search-super {
top: 100%;
min-height: calc((var(--vh, 1vh) * 100) - 56px);