Fix original message time
Fix animated emoji sticker play after click and blur
This commit is contained in:
parent
d1a5b22da1
commit
42506be144
@ -503,7 +503,7 @@ export class ChatInput {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.replyElements.cancelBtn.addEventListener('click', (e) => {
|
const onCancelHelper = (e: Event) => {
|
||||||
cancelEvent(e);
|
cancelEvent(e);
|
||||||
|
|
||||||
if(this.willSendWebPage) {
|
if(this.willSendWebPage) {
|
||||||
@ -521,10 +521,14 @@ export class ChatInput {
|
|||||||
|
|
||||||
this.clearHelper();
|
this.clearHelper();
|
||||||
this.updateSendBtn();
|
this.updateSendBtn();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
this.replyElements.cancelBtn.addEventListener(isTouchSupported ? 'touchend' : 'click', onCancelHelper);
|
||||||
|
|
||||||
let d = false;
|
let d = false;
|
||||||
this.replyElements.container.addEventListener('click', (e) => {
|
this.replyElements.container.addEventListener(isTouchSupported ? 'touchend' : 'click', (e) => {
|
||||||
|
cancelEvent(e);
|
||||||
|
|
||||||
if(!findUpClassName(e.target, 'reply-wrapper')) return;
|
if(!findUpClassName(e.target, 'reply-wrapper')) return;
|
||||||
if(this.helperType == 'forward') {
|
if(this.helperType == 'forward') {
|
||||||
if(d) return;
|
if(d) return;
|
||||||
|
@ -40,7 +40,7 @@ export namespace MessageRender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const title = getFullDate(date)
|
const title = getFullDate(date)
|
||||||
+ (message.edit_date ? `\nEdited: ${getFullDate(new Date(message.edit_date * 1000))}` : '');
|
+ (message.edit_date ? `\nEdited: ${getFullDate(new Date(message.edit_date * 1000))}` : '')
|
||||||
+ (message.fwd_from ? `\nOriginal: ${getFullDate(new Date(message.fwd_from.date * 1000))}` : '');
|
+ (message.fwd_from ? `\nOriginal: ${getFullDate(new Date(message.fwd_from.date * 1000))}` : '');
|
||||||
|
|
||||||
const timeSpan = document.createElement('span');
|
const timeSpan = document.createElement('span');
|
||||||
|
@ -674,6 +674,7 @@ export function wrapSticker({doc, div, middleware, lazyLoadQueue, group, play, o
|
|||||||
let animation = LottieLoader.getAnimation(div);
|
let animation = LottieLoader.getAnimation(div);
|
||||||
|
|
||||||
if(animation.paused) {
|
if(animation.paused) {
|
||||||
|
animation.autoplay = true;
|
||||||
animation.restart();
|
animation.restart();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user