Fix follow & forward buttons cases
This commit is contained in:
parent
19afdd3179
commit
87f6c28a1f
@ -2431,7 +2431,7 @@ export default class ChatBubbles {
|
||||
bubble.classList.add('is-thread-starter', 'is-group-last');
|
||||
}
|
||||
|
||||
if(savedFrom && this.peerId === rootScope.myId && this.peerId !== REPLIES_PEER_ID) {
|
||||
if(savedFrom && message.fwd_from.saved_from_msg_id && this.peerId !== REPLIES_PEER_ID) {
|
||||
const goto = document.createElement('div');
|
||||
goto.classList.add('bubble-beside-button', 'goto-original', 'tgico-arrow_next');
|
||||
bubbleContainer.append(goto);
|
||||
|
@ -20,7 +20,7 @@ export namespace MessageRender {
|
||||
bubble.classList.add('channel-post');
|
||||
time = formatNumber(message.views, 1) + ' <i class="tgico-channelviews time-icon"></i> ' + (postAuthor ? RichTextProcessor.wrapEmojiText(postAuthor) + ', ' : '') + time;
|
||||
|
||||
if(chat.peerId !== chat.appImManager.myId) {
|
||||
if(!message.fwd_from?.saved_from_msg_id) {
|
||||
const forward = document.createElement('div');
|
||||
forward.classList.add('bubble-beside-button', 'forward');
|
||||
forward.innerHTML = `
|
||||
|
Loading…
x
Reference in New Issue
Block a user