Skip to content

Commit 752ede0

Browse files
committed
feat(Frecents): resolve occasional error caused by parsing all gateway events
1 parent 5656e1e commit 752ede0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

plugin/Frecents/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ plugins {
55
id("com.google.protobuf") version "0.9.5"
66
}
77

8-
version = "1.1.3"
8+
version = "1.1.4"
99
description = "Adds support for favorite GIFs, emojis, stickers, and recent items"
1010

1111
aliucord.changelog.set(
1212
"""
13+
# 1.1.4
14+
- Fixed an issue causing non-frecents events to be parsed, resulting in errors.
15+
1316
# 1.1.3
1417
- Added settings page with export debug information
1518
- If you are having issues with Frecents, please use this button and share the exported file with

plugin/Frecents/src/main/kotlin/dev/zt64/aliucord/plugins/frecents/FrecencySettingsManager.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class FrecencySettingsManager {
7777
}
7878

7979
fun handleGatewayUpdate(response: GatewayResponse) {
80+
if (response.settings.type != 2) return // Skip non-frecency settings
81+
8082
val newSettings = decodeSettings(response.settings.proto)
8183

8284
settings = if (response.partial) {

0 commit comments

Comments
 (0)