Browse Source

misc fixes

master
Eduard Kuzmenko 3 years ago
parent
commit
4564aeef6a
  1. 2
      src/components/chat/audio.ts
  2. 1
      src/components/peerProfile.ts
  3. 10
      src/scss/partials/_rightSidebar.scss

2
src/components/chat/audio.ts

@ -138,7 +138,7 @@ export default class ChatAudio extends PinnedContainer { @@ -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);

1
src/components/peerProfile.ts

@ -242,6 +242,7 @@ export default class PeerProfile { @@ -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);

10
src/scss/partials/_rightSidebar.scss

@ -127,6 +127,16 @@ @@ -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);

Loading…
Cancel
Save