Do not display fast reaction on changelog
This commit is contained in:
parent
857c11c856
commit
3ab7365a3b
@ -392,8 +392,8 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
//getHeavyAnimationPromise().then(() => {
|
//getHeavyAnimationPromise().then(() => {
|
||||||
fastRaf(() => {
|
fastRaf(() => {
|
||||||
if(bubble.classList.contains('is-sending')) {
|
if(bubble.classList.contains('is-outgoing')) {
|
||||||
bubble.classList.remove('is-sending');
|
bubble.classList.remove('is-sending', 'is-outgoing');
|
||||||
bubble.classList.add(this.peerId === rootScope.myId && this.chat.type !== 'scheduled' ? 'is-read' : 'is-sent');
|
bubble.classList.add(this.peerId === rootScope.myId && this.chat.type !== 'scheduled' ? 'is-read' : 'is-sent');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1750,11 +1750,11 @@ 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) {
|
||||||
if(bubble.classList.contains('is-sending')) {
|
if(bubble.classList.contains('is-outgoing')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
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.remove('is-sent', 'is-sending', 'is-outgoing'); // 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');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2714,7 +2714,7 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
const peerId = this.peerId;
|
const peerId = this.peerId;
|
||||||
// * can't use 'message.pFlags.out' here because this check will be used to define side of message (left-right)
|
// * can't use 'message.pFlags.out' here because this check will be used to define side of message (left-right)
|
||||||
const our = message.fromId === rootScope.myId || (message.pFlags.out && this.appPeersManager.isMegagroup(this.peerId));
|
const our = message.fromId === rootScope.myId || (message.pFlags.out && this.appPeersManager.isMegagroup(peerId));
|
||||||
|
|
||||||
const messageDiv = document.createElement('div');
|
const messageDiv = document.createElement('div');
|
||||||
messageDiv.classList.add('message');
|
messageDiv.classList.add('message');
|
||||||
@ -3056,6 +3056,10 @@ export default class ChatBubbles {
|
|||||||
bubble.classList.add(status);
|
bubble.classList.add(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isOutgoing) {
|
||||||
|
bubble.classList.add('is-outgoing');
|
||||||
|
}
|
||||||
|
|
||||||
const messageWithReplies = isMessage && this.appMessagesManager.getMessageWithReplies(message);
|
const messageWithReplies = isMessage && this.appMessagesManager.getMessageWithReplies(message);
|
||||||
const withReplies = !!messageWithReplies && message.mid > 0;
|
const withReplies = !!messageWithReplies && message.mid > 0;
|
||||||
|
|
||||||
|
@ -828,7 +828,7 @@ export default class ChatSelection extends AppSelection {
|
|||||||
|
|
||||||
public canSelectBubble(bubble: HTMLElement) {
|
public canSelectBubble(bubble: HTMLElement) {
|
||||||
return !bubble.classList.contains('service') &&
|
return !bubble.classList.contains('service') &&
|
||||||
!bubble.classList.contains('is-sending') &&
|
!bubble.classList.contains('is-outgoing') &&
|
||||||
!bubble.classList.contains('bubble-first') &&
|
!bubble.classList.contains('bubble-first') &&
|
||||||
!bubble.classList.contains('avoid-selection');
|
!bubble.classList.contains('avoid-selection');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user