From af94aa1d6c936d056328c76f69f7bd042b7d0451 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Fri, 25 Feb 2022 16:16:01 +0200 Subject: [PATCH] Fix unneeded sender's name on media message --- src/components/chat/bubbles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index ecdd260a..262c30ae 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -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' */) {