Fix unneeded sender's name on media message

This commit is contained in:
Eduard Kuzmenko 2022-02-25 16:16:01 +02:00
parent 8eeb180ddd
commit f0225d0c4e

View File

@ -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' */) {