feat: add message shot toggle for top-right badges

This commit is contained in:
Ireina
2026-04-02 21:40:15 +08:00
committed by AlexeyZavar
parent fc5bfeaee1
commit a33c3d8602
7 changed files with 111 additions and 3 deletions
@@ -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());
}