Browse Source

Fix unneeded sender's name on media message

master
Eduard Kuzmenko 3 years ago
parent
commit
af94aa1d6c
  1. 2
      src/components/chat/bubbles.ts

2
src/components/chat/bubbles.ts

@ -3100,7 +3100,7 @@ export default class ChatBubbles { @@ -3100,7 +3100,7 @@ export default class ChatBubbles {
const isOut = our && (!fwdFrom || this.peerId !== rootScope.myId);
let nameContainer: HTMLElement = bubbleContainer;
const canHideNameIfMedia = !message.viaBotId && message.fromId === rootScope.myId;
const canHideNameIfMedia = !message.viaBotId && (message.fromId === rootScope.myId || !message.pFlags.out);
// media
if(messageMedia/* && messageMedia._ === 'messageMediaPhoto' */) {

Loading…
Cancel
Save