From c683db2a0b3c4ed7a5eeb9b5726c8a986af3d777 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Fri, 8 Aug 2025 15:59:44 +1000 Subject: [PATCH] fix(canary/ComponentsV2): 8.8.0 @ LavaDesu/Aliucord@dc380c6fc35507c70d9bf83730f2f84c16b8f54a --- canary/ComponentsV2/build.gradle.kts | 5 ++++- .../src/main/kotlin/com/aliucord/coreplugins/ComponentsV2.kt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/canary/ComponentsV2/build.gradle.kts b/canary/ComponentsV2/build.gradle.kts index 4c55594..46b286a 100644 --- a/canary/ComponentsV2/build.gradle.kts +++ b/canary/ComponentsV2/build.gradle.kts @@ -1,6 +1,6 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar -version = "8.7.0" +version = "8.8.0" description = "Beta backport of ComponentsV2" aliucord { @@ -14,6 +14,9 @@ aliucord { Changelog {added marginTop} ====================== + # 8.8.0 + * Fix a possible weird crash + # 8.7.0 * Prevent ViewRaw crash * Add a CV2 tag to distinguish new embeds (will not be in core) diff --git a/canary/ComponentsV2/src/main/kotlin/com/aliucord/coreplugins/ComponentsV2.kt b/canary/ComponentsV2/src/main/kotlin/com/aliucord/coreplugins/ComponentsV2.kt index 64a147f..7302dd9 100644 --- a/canary/ComponentsV2/src/main/kotlin/com/aliucord/coreplugins/ComponentsV2.kt +++ b/canary/ComponentsV2/src/main/kotlin/com/aliucord/coreplugins/ComponentsV2.kt @@ -27,7 +27,7 @@ import com.discord.widgets.chat.list.entries.BotUiComponentEntry import com.lytefast.flexinput.R import de.robv.android.xposed.XposedBridge -val Message.isComponentV2 get() = (flags shr 15) and 1 == 1L +val Message.isComponentV2 get() = ((flags ?: 0) shr 15) and 1 == 1L @AliucordPlugin(requiresRestart = true) @Suppress("unused")