Fix time overflow with grouped documents
This commit is contained in:
parent
7beef74cbe
commit
56b1421137
@ -1818,7 +1818,7 @@ export default class ChatBubbles {
|
||||
}
|
||||
|
||||
const isOut = our && (!message.fwd_from || this.peerId != rootScope.myId);
|
||||
let nameContainer = bubbleContainer;
|
||||
let nameContainer: HTMLElement = bubbleContainer;
|
||||
|
||||
// media
|
||||
if(messageMedia/* && messageMedia._ == 'messageMediaPhoto' */) {
|
||||
@ -2084,7 +2084,7 @@ export default class ChatBubbles {
|
||||
nameContainer = newNameContainer;
|
||||
}
|
||||
|
||||
const lastContainer = messageDiv.lastElementChild.querySelector('.document-size, .audio');
|
||||
const lastContainer = messageDiv.lastElementChild.querySelector('.document-message, .document-size, .audio');
|
||||
lastContainer && lastContainer.append(timeSpan.cloneNode(true));
|
||||
|
||||
bubble.classList.remove('is-message-empty');
|
||||
|
@ -1099,7 +1099,7 @@ export function wrapGroupedDocuments({albumMustBeRenderedFull, message, bubble,
|
||||
chat: Chat,
|
||||
loadPromises?: Promise<any>[]
|
||||
}) {
|
||||
let nameContainer: HTMLDivElement;
|
||||
let nameContainer: HTMLElement;
|
||||
const mids = albumMustBeRenderedFull ? chat.getMidsByMid(message.mid) : [message.mid];
|
||||
/* if(isPending) {
|
||||
mids.reverse();
|
||||
|
Loading…
Reference in New Issue
Block a user