mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: add message shot toggle for top-right badges
This commit is contained in:
@@ -409,7 +409,14 @@ void Message::refreshRightBadge() {
|
||||
if (const auto badge = Get<RightBadge>(); badge && badge->overridden) {
|
||||
return;
|
||||
}
|
||||
if (hasOutLayout()) {
|
||||
if (hasOutLayout() && !AyuFeatures::MessageShot::isTakingShot()) {
|
||||
if (Has<RightBadge>()) {
|
||||
RemoveComponents(RightBadge::Bit());
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (AyuFeatures::MessageShot::ignoreRender(
|
||||
AyuFeatures::MessageShot::RenderPart::HeaderDecorations)) {
|
||||
if (Has<RightBadge>()) {
|
||||
RemoveComponents(RightBadge::Bit());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user