Fix unneeded sender's name on media message
This commit is contained in:
parent
fbbe91124c
commit
af94aa1d6c
@ -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' */) {
|
||||||
|
Loading…
Reference in New Issue
Block a user