Fix unneeded sender's name on media message

This commit is contained in:
Eduard Kuzmenko 2022-02-25 16:16:01 +02:00
parent fbbe91124c
commit af94aa1d6c

View File

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