diff --git a/Telegram/SourceFiles/platform/mac/mac_touchbar.mm b/Telegram/SourceFiles/platform/mac/mac_touchbar.mm index 6fee5efe3..a2410e438 100644 --- a/Telegram/SourceFiles/platform/mac/mac_touchbar.mm +++ b/Telegram/SourceFiles/platform/mac/mac_touchbar.mm @@ -440,7 +440,7 @@ void AppendEmojiPacks(std::vector &to) { } _peerChangedLifetime.destroy(); _peer = newPeer; - if (!_peer) { + if (!_peer || IsSelfPeer(_peer)) { return; } Notify::PeerUpdateViewer( @@ -516,6 +516,9 @@ void AppendEmojiPacks(std::vector &to) { } - (void) updateBadge { + if (IsSelfPeer(_peer)) { + return; + } // Draw unread or online badge. auto pixmap = App::pixmapFromImageInPlace(_userpic.toImage()); Painter p(&pixmap);