misc fixes
This commit is contained in:
parent
c30aa30bd2
commit
4564aeef6a
@ -138,7 +138,7 @@ export default class ChatAudio extends PinnedContainer {
|
|||||||
}) => {
|
}) => {
|
||||||
let title: string | HTMLElement, subtitle: string | HTMLElement | DocumentFragment;
|
let title: string | HTMLElement, subtitle: string | HTMLElement | DocumentFragment;
|
||||||
if(doc.type === 'voice' || doc.type === 'round') {
|
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 = 'Voice message';
|
||||||
subtitle = formatFullSentTime(message.date);
|
subtitle = formatFullSentTime(message.date);
|
||||||
|
@ -242,6 +242,7 @@ export default class PeerProfile {
|
|||||||
|
|
||||||
public setPeerStatus = (needClear = false) => {
|
public setPeerStatus = (needClear = false) => {
|
||||||
const peerId = this.peerId;
|
const peerId = this.peerId;
|
||||||
|
this.element.classList.toggle('is-me', peerId === rootScope.myId);
|
||||||
if(!peerId || (rootScope.myId === peerId && this.isDialog)) return;
|
if(!peerId || (rootScope.myId === peerId && this.isDialog)) return;
|
||||||
|
|
||||||
appImManager.setPeerStatus(this.peerId, this.subtitle, needClear, true, () => peerId === this.peerId, !this.isDialog);
|
appImManager.setPeerStatus(this.peerId, this.subtitle, needClear, true, () => peerId === this.peerId, !this.isDialog);
|
||||||
|
@ -127,6 +127,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profile-content.is-me {
|
||||||
|
.profile-name {
|
||||||
|
margin-bottom: .9375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.search-super {
|
.search-super {
|
||||||
top: 100%;
|
top: 100%;
|
||||||
min-height: calc((var(--vh, 1vh) * 100) - 56px);
|
min-height: calc((var(--vh, 1vh) * 100) - 56px);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user