Browse Source

Fix follow & forward buttons cases

master
Eduard Kuzmenko 4 years ago
parent
commit
87f6c28a1f
  1. 2
      src/components/chat/bubbles.ts
  2. 2
      src/components/chat/messageRender.ts

2
src/components/chat/bubbles.ts

@ -2431,7 +2431,7 @@ export default class ChatBubbles {
bubble.classList.add('is-thread-starter', 'is-group-last'); 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'); const goto = document.createElement('div');
goto.classList.add('bubble-beside-button', 'goto-original', 'tgico-arrow_next'); goto.classList.add('bubble-beside-button', 'goto-original', 'tgico-arrow_next');
bubbleContainer.append(goto); bubbleContainer.append(goto);

2
src/components/chat/messageRender.ts

@ -20,7 +20,7 @@ export namespace MessageRender {
bubble.classList.add('channel-post'); bubble.classList.add('channel-post');
time = formatNumber(message.views, 1) + ' <i class="tgico-channelviews time-icon"></i> ' + (postAuthor ? RichTextProcessor.wrapEmojiText(postAuthor) + ', ' : '') + time; 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'); const forward = document.createElement('div');
forward.classList.add('bubble-beside-button', 'forward'); forward.classList.add('bubble-beside-button', 'forward');
forward.innerHTML = ` forward.innerHTML = `

Loading…
Cancel
Save