Fix reading status when sending messages to bot
This commit is contained in:
parent
337f066fe6
commit
963b71d020
@ -310,8 +310,10 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
//getHeavyAnimationPromise().then(() => {
|
//getHeavyAnimationPromise().then(() => {
|
||||||
fastRaf(() => {
|
fastRaf(() => {
|
||||||
bubble.classList.remove('is-sending');
|
if(bubble.classList.contains('is-sending')) {
|
||||||
bubble.classList.add(this.peerId === rootScope.myId && this.chat.type !== 'scheduled' ? 'is-read' : 'is-sent');
|
bubble.classList.remove('is-sending');
|
||||||
|
bubble.classList.add(this.peerId === rootScope.myId && this.chat.type !== 'scheduled' ? 'is-read' : 'is-sent');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//});
|
//});
|
||||||
|
|
||||||
@ -1222,7 +1224,7 @@ export default class ChatBubbles {
|
|||||||
if(msgId > 0 && msgId <= maxId) {
|
if(msgId > 0 && msgId <= maxId) {
|
||||||
const bubble = this.bubbles[msgId];
|
const bubble = this.bubbles[msgId];
|
||||||
if(bubble) {
|
if(bubble) {
|
||||||
bubble.classList.remove('is-sent');
|
bubble.classList.remove('is-sent', 'is-sending'); // is-sending can be when there are bulk of updates (e.g. sending command to Stickers bot)
|
||||||
bubble.classList.add('is-read');
|
bubble.classList.add('is-read');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user